diff options
Diffstat (limited to 'test/Misc/message-length.c')
-rw-r--r-- | test/Misc/message-length.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Misc/message-length.c b/test/Misc/message-length.c new file mode 100644 index 0000000000..a99889237c --- /dev/null +++ b/test/Misc/message-length.c @@ -0,0 +1,13 @@ +// RUN: clang -fsyntax-only -fmessage-length=72 %s + +/* It's tough to verify the results of this test mechanically, since + the length of the filename (and, therefore, how the word-wrapping + behaves) changes depending on where the test-suite resides in the + file system. */ +void f(int, float, char, float); + +void g() { + int (*fp1)(int, float, short, float) = f; + + int (*fp2)(int, float, short, float) = f; +} |