comparison gcc/testsuite/g++.dg/parse/pragma2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
2 2
3 // Ideally, the #pragma error would come one line further down, but it 3 // Ideally, the #pragma error would come one line further down, but it
4 // does not. 4 // does not.
5 int f(int x, 5 int f(int x,
6 #pragma interface // { dg-error "not allowed here" } 6 #pragma interface // { dg-error "not allowed here" }
7 // { dg-bogus "two or more" "" { xfail *-*-* } .-1 }
7 // The parser gets confused and issues an error on the next line. 8 // The parser gets confused and issues an error on the next line.
8 int y); // { dg-bogus "" "" { xfail *-*-* } } 9 int y);