Home | History | Annotate | Download | only in SemaCXX
      1 // XFAIL: hexagon
      2 // RUN: %clang -x c++-header -c -Wunused-local-typedef %s -o %t.gch -Werror
      3 // RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s
      4 // RUN: %clang -DBE_THE_SOURCE -c -Wunused-local-typedef -include %t %s -o /dev/null 2>&1 | FileCheck %s
      5 
      6 #ifndef BE_THE_SOURCE
      7 inline void myfun() {
      8 // The warning should fire every time the pch file is used, not when it's built.
      9 // CHECK: warning: unused typedef
     10   typedef int a;
     11 }
     12 #endif
     13