Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / cxx1z-init-statement.cpp
blobd08fb7c56b712383cd707f55f2b5c94006355272
1 // Test this without pch.
2 // RUN: %clang_cc1 -std=c++1z -include %S/cxx1z-init-statement.h -fsyntax-only -emit-llvm -o - %s
4 // Test with pch.
5 // RUN: %clang_cc1 -x c++ -std=c++1z -emit-pch -o %t %S/cxx1z-init-statement.h
6 // RUN: %clang_cc1 -std=c++1z -include-pch %t -fsyntax-only -emit-llvm -o - %s
8 void g0(void) {
9 static_assert(test_if(-1) == -1, "");
10 static_assert(test_if(0) == 0, "");
13 void g1(void) {
14 static_assert(test_switch(-1) == -1, "");
15 static_assert(test_switch(0) == 0, "");
16 static_assert(test_switch(1) == 1, "");