[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx1z-init-statement.h
blob16bd569c848c4f2e30a192cfa3861843cf7949ae
1 // Header for PCH test cxx1z-init-statement.cpp
3 constexpr int test_if(int x) {
4 if (int a = ++x; a == 0) {
5 return -1;
6 } else if (++a; a == 2) {
7 return 0;
9 return 2;
12 constexpr int test_switch(int x) {
13 switch (int a = ++x; a) {
14 case 0:
15 return -1;
16 case 1:
17 return 0;
18 case 2:
19 return 1;
21 return 2;