Douglas Gregor | fffd93f | 2009-05-01 21:53:04 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -fmessage-length=72 %s |
| 2 | |
| 3 | /* It's tough to verify the results of this test mechanically, since |
| 4 | the length of the filename (and, therefore, how the word-wrapping |
| 5 | behaves) changes depending on where the test-suite resides in the |
| 6 | file system. */ |
| 7 | void f(int, float, char, float); |
| 8 | |
| 9 | void g() { |
| 10 | int (*fp1)(int, float, short, float) = f; |
| 11 | |
| 12 | int (*fp2)(int, float, short, float) = f; |
| 13 | } |
Douglas Gregor | 47f7177 | 2009-05-01 23:32:58 +0000 | [diff] [blame] | 14 | |
| 15 | void a_func_to_call(int, int, int); |
| 16 | |
| 17 | void a_very_long_line(int *ip, float *FloatPointer) { |
| 18 | for (int ALongIndexName = 0; ALongIndexName < 100; ALongIndexName++) if (ip[ALongIndexName] == 17) a_func_to_call(ip == FloatPointer, ip[ALongIndexName], FloatPointer[ALongIndexName]); |
| 19 | |
| 20 | |
| 21 | int array0[] = { [3] 3, 5, 7, 4, 2, 7, 6, 3, 4, 5, 6, 7, 8, 9, 12, 345, 14, 345, 789, 234, 678, 345, 123, 765, 234 }; |
| 22 | } |