comparison gcc/testsuite/g++.dg/parse/concat1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* PR c/3581 */ 1 /* PR c/3581 */
2 /* { dg-do compile } */ 2 /* { dg-do compile } */
3 3
4 /* Intended as a compile-time test for string literal concatenation. 4 /* Intended as a compile-time test for string literal concatenation. */
5 The fact that the string isn't actually used in the resulting program
6 should allow this to compile for any target. */
7 5
8 #define e0 "a" 6 #define e0 "a" /* { dg-error "size of string literal is too large" "" { target { ! size32plus } } } */
9 #define e1 e0 e0 e0 e0 e0 e0 e0 e0 e0 e0 7 #define e1 e0 e0 e0 e0 e0 e0 e0 e0 e0 e0
10 #define e2 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1 8 #define e2 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1
11 #define e3 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2 9 #define e3 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2
12 #define e4 e3 e3 e3 e3 e3 e3 e3 e3 e3 e3 10 #define e4 e3 e3 e3 e3 e3 e3 e3 e3 e3 e3
13 #define e5 e4 e4 e4 e4 e4 e4 e4 e4 e4 e4 11 #define e5 e4 e4 e4 e4 e4 e4 e4 e4 e4 e4