Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr59641.C
blob12e8f92861f5ef07b08c319200db9022c4a7b336
1 // { dg-options "-std=gnu++11" }
2 typedef int T __attribute__((vector_size(2*sizeof(int))));
4 void foo(T& r, const T& a, const T& b)
6   constexpr T c = a < b; // { dg-error "constant" }
7   r = c ? a : b;