Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / warn-unused-local-typedef-serialize.cpp
blob9c0f145e4c79559d5eea0020909d5e7a3893f032
1 // RUN: %clang -x c++-header -c -Wunused-local-typedef %s -o %t.pch -Werror
2 // RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s
3 // RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s
5 #ifndef BE_THE_SOURCE
6 inline void myfun() {
7 // The warning should fire every time the pch file is used, not when it's built.
8 // CHECK: warning: unused typedef
9 typedef int a;
11 #endif