[committed] Fix decl_plugin.c testcase

Submitted by Jakub Jelinek on Aug. 18, 2011, 2:12 p.m.


Message ID 20110818141216.GA2687@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

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

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

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

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


Patch hide | download patch | download mbox

--- 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;