Patchwork Fix test for PR18079

login
register
mail settings
Submitter Marek Polacek
Date April 25, 2014, 1:20 p.m.
Message ID <20140425132053.GR2103@redhat.com>
Download mbox | patch
Permalink /patch/342819/
State New
Headers show

Comments

Marek Polacek - April 25, 2014, 1:20 p.m.
A while ago I committed a fix for PR18079, but only later on discovered
that the test fails because of wrong quoting in dg-warning.  Sorry.

Committed.

2014-04-25  Marek Polacek  <polacek@redhat.com>

	* gcc.dg/pr18079-2.c: Fix quoting in dg-warning.


	Marek

Patch

diff --git gcc/testsuite/gcc.dg/pr18079-2.c gcc/testsuite/gcc.dg/pr18079-2.c
index 5091dd41b..2c83b70 100644
--- gcc/testsuite/gcc.dg/pr18079-2.c
+++ gcc/testsuite/gcc.dg/pr18079-2.c
@@ -3,14 +3,14 @@ 
 /* { dg-options "-Wall" } */
 
 __attribute__ ((always_inline)) void fndecl1 (void);
-__attribute__ ((noinline)) void fndecl1 (void); /* { dg-warning "attribute noinline follows declaration with attribute always_inline" } */
+__attribute__ ((noinline)) void fndecl1 (void); /* { dg-warning "attribute 'noinline' follows declaration with attribute 'always_inline'" } */
 
 __attribute__ ((noinline)) void fndecl2 (void);
-__attribute__ ((always_inline)) void fndecl2 (void); /* { dg-warning "attribute always_inline follows declaration with attribute noinline" } */
+__attribute__ ((always_inline)) void fndecl2 (void); /* { dg-warning "attribute 'always_inline' follows declaration with attribute 'noinline'" } */
 
 
 __attribute__ ((hot)) void fndecl3 (void);
-__attribute__ ((cold)) void fndecl3 (void); /* { dg-warning "attribute cold follows declaration with attribute hot" } */
+__attribute__ ((cold)) void fndecl3 (void); /* { dg-warning "attribute 'cold' follows declaration with attribute 'hot'" } */
 
 __attribute__ ((cold)) void fndecl4 (void);
-__attribute__ ((hot)) void fndecl4 (void); /* { dg-warning "attribute hot follows declaration with attribute cold" } */
+__attribute__ ((hot)) void fndecl4 (void); /* { dg-warning "attribute 'hot' follows declaration with attribute 'cold'" } */