You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
670 B

// RUN: rm -rf %t
//
// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t \
// RUN: -I %S/Inputs/initializer_list \
// RUN: -fmodule-map-file=%S/Inputs/initializer_list/direct.modulemap \
// RUN: %s -verify -std=c++11
//
// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t \
// RUN: -I %S/Inputs/initializer_list \
// RUN: -fmodule-map-file=%S/Inputs/initializer_list/indirect.modulemap \
// RUN: %s -verify -std=c++11 -DINCLUDE_DIRECT
// expected-no-diagnostics
#ifdef INCLUDE_DIRECT
#include "direct.h"
auto k = {1, 2, 3};
#endif
@import initializer_list;
auto v = {1, 2, 3};
int n = std::min({1, 2, 3});