reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s
// RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s

#ifndef HEADER
#define HEADER

inline void test(int i) {
  switch (i) {
    case 1:
      // Notice that the NullStmt has two attributes.
      // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
      [[clang::fallthrough]] [[clang::fallthrough]];
    case 2:
      break;
  }
}

#else

void foo(void) {
  test(1);
}

#endif