This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] Fix up attribute_plugin-test-1.C (PR testsuite/41707)


Hi!

Must have missed this regression when testing the BUILTINS_LOCATION patch.
THe problem is that it calls warning (0, "...") from a callback without any
specific location, so now is reported at <built-in>:0:0 (which is IMHO
correct).

Ok for trunk?

2009-10-14  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/41707
	* g++.dg/plugin/attribute_plugin-test-1.C: Expect the first
	warning on line 0 instead of 1.

--- gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C.jj	2009-05-14 09:33:17.000000000 +0200
+++ gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C	2009-10-14 17:12:12.000000000 +0200
@@ -1,4 +1,4 @@
-// { dg-warning "Callback to register attributes" }
+// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 }
 
 void normal_func (char c, char c2);
 void normal_func (char __attribute__((user("param"))) c, char);

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]