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
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr59641.C
blob
36af96a892d0ae096d64e99dfa0f8d9a35b91f21
1
// { dg-do compile { target c++11 } }
2
typedef int T __attribute__((vector_size(2*sizeof(int))));
3
4
void foo(T& r, const T& a, const T& b)
5
{
6
constexpr T c = a < b; // { dg-error "constant" }
7
r = c ? a : b;
8
}