Patchwork [committed] Fix decl_plugin.c testcase

login
register
mail settings
Submitter Jakub Jelinek
Date Aug. 18, 2011, 2:12 p.m.
Message ID <20110818141216.GA2687@tyan-ft48-01.lab.bos.redhat.com>
Download mbox | patch
Permalink /patch/110525/
State New
Headers show

Comments

Jakub Jelinek - Aug. 18, 2011, 2:12 p.m.
Hi!

I'm getting
UNRESOLVED: decl_plugin.c compilation, -I. -I/usr/src/gcc/gcc/testsuite -I/usr/src/gcc/gcc/testsuite/../../gcc -I/usr/src/gcc/obj773/gcc/testsuite/g++/../../../gcc  -I/usr/src/gcc/gcc/testsuite/../../include -I/usr/src/gcc/gcc/testsuite/../../libcpp/include -I/usr/src/gcc/obj773/gcc/testsuite/g++/../../../intl  -DIN_GCC -fPIC -shared
on the recently added decl_plugin.c testcase, because there is no prototype
for warning.  Fixed thusly, committed as obvious to trunk after testing on
x86_64-linux.

2011-08-18  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/plugin/decl_plugin.c: Include diagnostic.h.


	Jakub

Patch

--- gcc/testsuite/g++.dg/plugin/decl_plugin.c.jj	2011-08-18 10:05:35.000000000 +0200
+++ gcc/testsuite/g++.dg/plugin/decl_plugin.c	2011-08-18 15:53:50.249421561 +0200
@@ -8,6 +8,7 @@ 
 #include "tree.h"
 #include "tree-pass.h"
 #include "intl.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;