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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cond6.C
blob
db018a4a3014867975b9f015570c95af166aa0b7
1
// { dg-do assemble }
2
// Test that the result of `x ? const E : E' is an E rvalue.
3
// Contributed by Jason Merrill <jason@cygnus.com>
4
5
enum E { a };
6
7
bool b;
8
9
int main ()
10
{
11
E e1 = a;
12
const E &er = e1;
13
E e2 = b ? er : a; // OK
14
const E* ep = &(b ? er : a); // { dg-error "" } non-lvalue
15
}