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