summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/has_c_attribute.c
blob: f9e1a5841b48a989dfe0dae9ed5c56f870369323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fdouble-square-bracket-attributes -std=c11 -E %s -o - | FileCheck %s

// CHECK: has_fallthrough
#if __has_c_attribute(fallthrough)
  int has_fallthrough();
#endif

// CHECK: does_not_have_selectany
#if !__has_c_attribute(selectany)
  int does_not_have_selectany();
#endif

OpenPOWER on IntegriCloud