Jean-Daniel Dupas | 8a5e7fd | 2012-03-01 14:53:16 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s |
2 | // RUN: %clang_cc1 %s -E | ||||
3 | #ifndef __has_attribute | ||||
4 | #error Should have __has_attribute | ||||
5 | #endif | ||||
6 | |||||
7 | #if __has_attribute(something_we_dont_have) | ||||
8 | #error Bad | ||||
9 | #endif | ||||
10 | |||||
11 | #if !__has_attribute(__always_inline__) || \ | ||||
12 | !__has_attribute(always_inline) | ||||
13 | #error Clang should have this | ||||
14 | #endif |