summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error6.C
blob: 8b8424fe30ac306345f25fb3437a5e2027f498b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/10603
// { dg-options "-fshow-column" }

int f(int not) {
  return 1-not;
} 

// { dg-error "11:expected ',' or '...' before 'not' token" "" { target *-*-* } 4 }

// { dg-error "15:expected primary\\-expression before ';' token" "" { target *-*-* } 5 }