re PR testsuite/71865 (test case gcc.dg/diagnostic-token-ranges.c fails starting...
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Jul 2016 18:42:53 +0000 (20:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Jul 2016 18:42:53 +0000 (20:42 +0200)
PR testsuite/71865
* gcc.dg/diagnostic-token-ranges.c: Add -std=c11 to dg-options.
(wide_string_literal_in_asm): Use __asm instead of asm, adjust
expected diagnostics.

From-SVN: r238353

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/diagnostic-token-ranges.c

index 9585de48e791ffbb8ca9b4a0dfa18ef265134216..2d147bbf6fc3cbfb206741531ea5e4036b66aa8d 100644 (file)
@@ -1,5 +1,10 @@
 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
 
+       PR testsuite/71865
+       * gcc.dg/diagnostic-token-ranges.c: Add -std=c11 to dg-options.
+       (wide_string_literal_in_asm): Use __asm instead of asm, adjust
+       expected diagnostics.
+
        PR c/71858
        * gcc.dg/spellcheck-identifiers.c (snprintf): Declare.
        * gcc.dg/spellcheck-identifiers-2.c: New test.
index 20ceff517f993733c9be9140ed8a7b3f52de162b..2ef7a01c48e113e59a9ec5541291bef33c2b2455 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-fdiagnostics-show-caret -Wc++-compat" } */
+/* { dg-options "-fdiagnostics-show-caret -Wc++-compat -std=c11" } */
 
 /* Verify that various diagnostics show source code ranges.  */
 
@@ -68,11 +68,11 @@ foo (unknown_type param); /* { dg-error "unknown type name 'unknown_type'" } */
 
 void wide_string_literal_in_asm (void)
 {
-  asm (L"nop"); /* { dg-error "wide string literal in 'asm'" } */
+  __asm (L"nop"); /* { dg-error "wide string literal in 'asm'" } */
 /*
 { dg-begin-multiline-output "" }
-   asm (L"nop");
-        ^~~~~~
+   __asm (L"nop");
+          ^~~~~~
 { dg-end-multiline-output "" }
 */
 }