repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
error24.C
blob
e5e6a4fa338932eaf1fb2c730f0b602c3676e738
1
// PR c++/34965
2
// { dg-do compile }
3
// { dg-options "-O" }
4
5
int foo (int);
6
7
void
8
bar (int i, int j, double k)
9
{
10
foo (i && j) (); // { dg-error "\\(\\(?i != 0\\)? \\&\\& \\(?j != 0\\)?\\)" }
11
foo (!i || !j) (); // { dg-error "function" }
12
foo (!i == !j) (); // { dg-error "function" }
13
}