• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
12 
13 // expected-no-diagnostics
14 
15 #ifdef INCLUDE_DIRECT
16 #include "direct.h"
17 auto k = {1, 2, 3};
18 #endif
19 
20 @import initializer_list;
21 
22 auto v = {1, 2, 3};
23 int n = std::min({1, 2, 3});
24