Home | History | Annotate | Download | only in PCH
      1 // RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s
      2 // RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s
      3 
      4 #ifndef HEADER
      5 #define HEADER
      6 
      7 inline void test(int i) {
      8   switch (i) {
      9     case 1:
     10       // Notice that the NullStmt has two attributes.
     11       // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
     12       [[clang::fallthrough]] [[clang::fallthrough]];
     13     case 2:
     14       break;
     15   }
     16 }
     17 
     18 #else
     19 
     20 void foo(void) {
     21   test(1);
     22 }
     23 
     24 #endif
     25