brintos

brintos / llvm-project-archived public Read only

0
0
Text · 472 B · 9c0f145 Raw
12 lines · cpp
1// RUN: %clang -x c++-header -c -Wunused-local-typedef %s -o %t.pch -Werror2// RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s3// RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s4 5#ifndef BE_THE_SOURCE6inline void myfun() {7// The warning should fire every time the pch file is used, not when it's built.8// CHECK: warning: unused typedef9  typedef int a;10}11#endif12