diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-07-14 20:42:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-07-14 20:42:53 +0200 |
commit | a60a5d31dd7360a2788e2cac7865d5f491c3464e (patch) | |
tree | c6cb7ee4b236705a7de71b2a2796a147e21c0521 /gcc | |
parent | dd36b8775fb8c66165f1ad9780102f26768bcd8f (diff) | |
download | gcc-a60a5d31dd7360a2788e2cac7865d5f491c3464e.zip gcc-a60a5d31dd7360a2788e2cac7865d5f491c3464e.tar.gz gcc-a60a5d31dd7360a2788e2cac7865d5f491c3464e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/diagnostic-token-ranges.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9585de4..2d147bb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c b/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c index 20ceff5..2ef7a01 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 "" } */ } |