| Richard Smith | 0015f09 | 2013-01-17 22:16:11 +0000 | [diff] [blame] | 1 | // RUN: %clang -fsyntax-only -Xclang -verify -std=c11 %s |
| 2 | |
| 3 | noreturn int f(); // expected-error 1+{{}} |
| 4 | |
| 5 | #include <stdnoreturn.h> |
| 6 | #include <stdnoreturn.h> |
| 7 | #include <stdnoreturn.h> |
| 8 | |
| 9 | int g(); |
| 10 | noreturn int g(); |
| 11 | int noreturn g(); |
| 12 | int g(); |
| Richard Smith | 4dab709 | 2013-01-30 06:33:54 +0000 | [diff] [blame^] | 13 | |
| 14 | #include <stdalign.h> |
| 15 | _Static_assert(__alignas_is_defined, ""); |
| 16 | _Static_assert(__alignof_is_defined, ""); |
| 17 | alignas(alignof(int)) char c[4]; |
| 18 | _Static_assert(__alignof(c) == 4, ""); |