summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/pragma2.C
blob: 3dc5fc177886327e18ba0b414034f0d5053dbedf (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" }
      // { dg-bogus "expected identifier" "" { xfail *-*-* } .-1 }
      int y);