1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <locale>
10 
11 // This test verifies that the construction of locale::__imp does not allocate
12 // for facets, as it uses __sso_allocator<facet*, N>. It would fail if new
13 // facets have been added (using install()) but N hasn't been adjusted to
14 // account for them.
15 
16 #include <cassert>
17 
18 #include "count_new.h"
19 
main(int,char **)20 int main(int, char**) {
21   assert(globalMemCounter.checkOutstandingNewEq(0));
22   return 0;
23 }
24