summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/pedantic1.C
blob: 2a4d05536c50126200f2e5c4448ca3eb5b0fd151 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR10032
// { dg-options "-pedantic" }

int main() {
  goto label;   // { dg-error "" }
  
  int temp = 1; // { dg-error "" } 
  
  label:        // { dg-error "" } 
    return 1;
}