blob: 1604d7790fc739dcf8abc1c96ca59d258b826bd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/* { dg-do compile } */
/* Test __has_{feature,extension} for generic features. */
#define FEAT(x) (__has_feature (x) && __has_extension (x))
#define EXT(x) (__has_extension (x) && !__has_feature (x))
#if __has_feature (unknown_feature) || __has_extension (unknown_feature)
#error unknown feature is known!
#endif
#if !EXT (gnu_asm_goto_with_outputs)
#error
#endif
#if !EXT (__gnu_asm_goto_with_outputs__)
#error
#endif
#if !EXT (gnu_asm_goto_with_outputs_full)
#error
#endif
#if !EXT (__gnu_asm_goto_with_outputs_full__)
#error
#endif
#if !FEAT (enumerator_attributes)
#error
#endif
#if !FEAT (__enumerator_attributes__)
#error
#endif
#if !FEAT (attribute_deprecated_with_message)
#error
#endif
#if !FEAT (__attribute_deprecated_with_message__)
#error
#endif
#if !FEAT (attribute_unavailable_with_message)
#error
#endif
#if !FEAT (__attribute_unavailable_with_message__)
#error
#endif
#if !FEAT (tls)
#error
#endif
#if !FEAT(__tls__)
#error
#endif
#if defined (__SANITIZE_ADDRESS__) != __has_feature (address_sanitizer)
#error
#endif
#if defined (__SANITIZE_ADDRESS__) != __has_extension (address_sanitizer)
#error
#endif
#if defined (__SANITIZE_THREAD__) != __has_feature (thread_sanitizer)
#error
#endif
#if defined (__SANITIZE_THREAD__) != __has_extension (thread_sanitizer)
#error
#endif
|