repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bool4.C
blob
dce51ec332e5217d1d6efb807e1a234ed91beca1
1
// { dg-do compile }
2
// make sure that a typedef for a bool will have the
3
// the same results as a bool itself.
4
5
6
typedef volatile bool my_bool;
7
int main()
8
{
9
my_bool b = false;
10
b--; // { dg-error "" }
11
return 0;
12
}
13