llvm-project/clang/test/Modules/initializer_list.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
670 B
C++
Raw Normal View History

// 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});