summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:28:05 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:29:09 +0000
commit03ac50856c9fc8c96b7a17239ee40a10397750a7 (patch)
treea648c6d3428e4757e003f6ed1748adb9613065db /gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c
parent34efdaf078b01a7387007c4e6bde6db86384c4b7 (diff)
downloadgcc-tarball-03ac50856c9fc8c96b7a17239ee40a10397750a7.tar.gz
gcc 7.2.0
This is imported manually due to a bug in the tarball import script. See the baserock-dev mailing list archives (November 2017) for a more detailed explaination of the issue.
Diffstat (limited to 'gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c')
-rw-r--r--gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c b/gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c
deleted file mode 100644
index 93d5e4600f..0000000000
--- a/gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* -Woverlength-strings complains about string constants which are too long
- for the C standard's "minimum maximum" limits. It is off by default,
- but implied by -pedantic. */
-
-/* { dg-options "-std=c99 -pedantic" } */
-
-#define TEN "xxxxxxxxxx"
-#define HUN TEN TEN TEN TEN TEN TEN TEN TEN TEN TEN
-#define THO HUN HUN HUN HUN HUN HUN HUN HUN HUN HUN
-
-/* C89's minimum-maximum is 509. */
-const char x510[] = HUN HUN HUN HUN HUN TEN;
-
-/* C99's minimum-maximum is 4095. */
-const char x4096[] = __extension__
- THO THO THO THO /* 4000 */
- TEN TEN TEN TEN TEN /* 4050 */
- TEN TEN TEN TEN /* 4090 */
- "123456";