Add a test to ensure that PPH files are #included at global scope.
Initially, this test is XFAIL, as it's a low priority error.
Index: gcc/testsuite/ChangeLog.pph
2011-04-12 Lawrence Crowl <crowl@google.com>
* g++.dg/pph/y2smother.cc: New.
Index: gcc/testsuite/g++.dg/pph/y2smother.cc
===================================================================
*** gcc/testsuite/g++.dg/pph/y2smother.cc (revision 0)
--- gcc/testsuite/g++.dg/pph/y2smother.cc (revision 0)
***************
*** 0 ****
--- 1,4 ----
+ namespace smother {
+ #include "x1struct1.h"
+ // { dg-error "pph file not included at global scope" "" { xfail *-*-* } }
+ }
--
This patch is available for review at http://codereview.appspot.com/4399041
On 2011/04/12 21:40:10, Lawrence Crowl wrote:
> Add a test to ensure that PPH files are #included at global scope.
> Initially, this test is XFAIL, as it's a low priority error.
>
> Index: gcc/testsuite/ChangeLog.pph
>
> 2011-04-12 Lawrence Crowl <mailto:crowl@google.com>
>
> * g++.dg/pph/y2smother.cc: New.
OK.
Diego.
Issue 4399041: [pph] Test PPH include at global scope.
(Closed)
Created 14 years ago by Lawrence Crowl
Modified 12 years, 10 months ago
Reviewers: Diego Novillo
Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/pph/
Comments: 0