summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/parser-pr14875.C
blob: 7a6f0618681e2f60aaca56ba38ae8e2816d8632d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR 14875: When using 'or' keyword, the error message speaks of a '||' token
// { dg-do compile }
// { dg-options "" }
using namespace std; 
 
class Sample 
{ 
 
public: 
  Sample(); 
  void or(long Digital);  // { dg-error "before .or. token" }
}; 
 
Sample::Sample() 
{ 
} 
 
void Sample::or(long Digital) // { dg-error "before .or. token" }
{ 
}