From: Jakub Jelinek Date: Thu, 14 Jul 2016 18:42:53 +0000 (+0200) Subject: re PR testsuite/71865 (test case gcc.dg/diagnostic-token-ranges.c fails starting... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a60a5d31dd7360a2788e2cac7865d5f491c3464e;p=gcc.git re PR testsuite/71865 (test case gcc.dg/diagnostic-token-ranges.c fails starting with r237714) 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9585de48e79..2d147bbf6fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-07-14 Jakub Jelinek + 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. diff --git a/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c b/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c index 20ceff517f9..2ef7a01c48e 100644 --- a/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c +++ b/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c @@ -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 "" } */ }