Eli Friedman | bc5ed6e | 2008-05-29 11:22:45 +0000 | [diff] [blame^] | 1 | // RUN: clang -emit-llvm %s 2>&1 | not grep warning |
Eli Friedman | cca196b | 2008-02-21 18:07:36 +0000 | [diff] [blame] | 2 | |
| 3 | #include <stdint.h> |
| 4 | |
| 5 | // Brace-enclosed string array initializers |
| 6 | char a[] = { "asdf" }; |
| 7 | |
| 8 | // Double-implicit-conversions of array/functions (not legal C, but |
| 9 | // clang accepts it for gcc compat). |
| 10 | intptr_t b = a; |
| 11 | int c(); |
| 12 | void *d = c; |
| 13 | intptr_t e = c; |
Eli Friedman | bc5ed6e | 2008-05-29 11:22:45 +0000 | [diff] [blame^] | 14 | |
| 15 | int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f; |