OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/14765
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr14765-1.c
1
/* Empty statement expressions should get void type. Bug 14765 from
2
Serge Belyshev <belyshev@lubercy.com>. */
3
/* { dg-do compile } */
4
/* { dg-options "" } */
5
6
int a;
7
void fun ()
8
{
9
a = 0;
10
a = ({}); /* { dg-error "not ignored" "void stmt expr" } */
11
}