[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / initializer_list.cpp
blobea6e282195d9916ffe0a08c7bad16b417fbcd8a8
1 // RUN: rm -rf %t
2 //
3 // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t \
4 // RUN: -I %S/Inputs/initializer_list \
5 // RUN: -fmodule-map-file=%S/Inputs/initializer_list/direct.modulemap \
6 // RUN: %s -verify -std=c++11
7 //
8 // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t \
9 // RUN: -I %S/Inputs/initializer_list \
10 // RUN: -fmodule-map-file=%S/Inputs/initializer_list/indirect.modulemap \
11 // RUN: %s -verify -std=c++11 -DINCLUDE_DIRECT
13 // expected-no-diagnostics
15 #ifdef INCLUDE_DIRECT
16 #include "direct.h"
17 auto k = {1, 2, 3};
18 #endif
20 @import initializer_list;
22 auto v = {1, 2, 3};
23 int n = std::min({1, 2, 3});