]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/cpp0x/udlit-macros.C
PR preprocessor/84517 allow double-underscore macros after string literals
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / udlit-macros.C
index fb5182818118d068ba9658d8a7b8d841c2c9b89b..7ef324b7e04c568aeaa3398b8210f1f74015cc01 100644 (file)
@@ -16,7 +16,7 @@ int operator""_ID(const char*, size_t) { return 0; }
 int main()
 {
   long i64 = 123;
-  char buf[100];
+  char buf[] = "xxxxxx"__FILE__;      // { dg-warning "invalid suffix on literal" }
   sprintf(buf, "%"PRId64"abc", i64);  // { dg-warning "invalid suffix on literal" }
   return strcmp(buf, "123abc")
         + ""_zero