• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -E %s -o - | FileCheck %s
2 
3 // CHECK: always_inline
4 #if __has_attribute(always_inline)
5 int always_inline();
6 #endif
7 
8 // CHECK: __always_inline__
9 #if __has_attribute(__always_inline__)
10 int __always_inline__();
11 #endif
12 
13 // CHECK: no_dummy_attribute
14 #if !__has_attribute(dummy_attribute)
15 int no_dummy_attribute();
16 #endif
17 
18 // CHECK: has_has_attribute
19 #ifdef __has_attribute
20 int has_has_attribute();
21 #endif
22 
23 // CHECK: has_something_we_dont_have
24 #if !__has_attribute(something_we_dont_have)
25 int has_something_we_dont_have();
26 #endif
27