Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / merge-lifetime-extended-temporary.cpp
blob632af01426b21a9dc190835902444997a016533f
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-lifetime-extended-temporary -verify -std=c++11 %s -DORDER=1
3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-lifetime-extended-temporary -verify -std=c++11 %s -DORDER=2
5 // expected-no-diagnostics
6 #if ORDER == 1
7 #include "c.h"
8 #include "b.h"
9 #else
10 #include "b.h"
11 #include "c.h"
12 #endif
14 static_assert(PtrTemp1 == &LETemp, "");
15 static_assert(PtrTemp1 == PtrTemp2, "");