summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/pragma2.C
blob: c5616ff74f53e49d2141e8a71a7eda4a32fae2c2 (plain)
1
2
3
4
5
6
7
8
// PR c++/17595

// Ideally, the #pragma error would come one line further down, but it
// does not.
int f(int x,
#pragma interface  // { dg-error "not allowed here" }
      // The parser gets confused and issues an error on the next line.
      int y); // { dg-bogus "" "" { xfail *-*-* } }