[flang][cuda] Do not register global constants (#118582)
[llvm-project.git] / clang / test / Modules / match_initializer_list.cpp
blob31e2b015a9d056897aa65fb9a08417d45b85198c
1 // RUN: rm -rf %t
2 //
3 // RUN: %clang_cc1 -x 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
8 // expected-no-diagnostics
10 class C {
11 public:
12 virtual ~C() {}
15 #include "Inputs/initializer_list/direct.h"
17 void takesInitList(std::initializer_list<int>);
19 void passesInitList() { takesInitList({0}); }