gcc/testsuite/c-c++-common/cpp/has-builtin-4.c
raw| 1 | /* { dg-do preprocess } */ |
| 2 | |
| 3 | #if __has_builtin (__builtin_va_start) != 1 |
| 4 | #error "No __builtin_va_start" |
| 5 | #endif |
| 6 | #if __has_builtin (__builtin_va_end) != 1 |
| 7 | #error "No __builtin_va_end" |
| 8 | #endif |
| 9 | #if __has_builtin (__builtin_va_arg) != 1 |
| 10 | #error "no __builtin_va_arg" |
| 11 | #endif |
| 12 | #if __STDC_VERSION__ >= 202311L |
| 13 | #if __has_builtin (__builtin_c23_va_start) != 1 |
| 14 | #error "no __builtin_c23_va_start" |
| 15 | #endif |
| 16 | #endif |