Commit a60a5d31 by Jakub Jelinek Committed by Jakub Jelinek

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
parent dd36b877
2016-07-14 Jakub Jelinek <jakub@redhat.com> 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 PR c/71858
* gcc.dg/spellcheck-identifiers.c (snprintf): Declare. * gcc.dg/spellcheck-identifiers.c (snprintf): Declare.
* gcc.dg/spellcheck-identifiers-2.c: New test. * gcc.dg/spellcheck-identifiers-2.c: New test.
......
/* { dg-options "-fdiagnostics-show-caret -Wc++-compat" } */ /* { dg-options "-fdiagnostics-show-caret -Wc++-compat -std=c11" } */
/* Verify that various diagnostics show source code ranges. */ /* Verify that various diagnostics show source code ranges. */
...@@ -68,11 +68,11 @@ foo (unknown_type param); /* { dg-error "unknown type name 'unknown_type'" } */ ...@@ -68,11 +68,11 @@ foo (unknown_type param); /* { dg-error "unknown type name 'unknown_type'" } */
void wide_string_literal_in_asm (void) 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 "" } { dg-begin-multiline-output "" }
asm (L"nop"); __asm (L"nop");
^~~~~~ ^~~~~~
{ dg-end-multiline-output "" } { dg-end-multiline-output "" }
*/ */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment