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
Forward port r208464 from google/gcc-4_8.
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
regress
/
array1.C
blob
629ab4103f58c3da60ab484ec73a5fd58fedc8ca
1
// PR c++/47808
2
// { dg-options -std=c++0x }
3
4
template <typename T>
5
inline T abs (T const & x) { return x; }
6
7
template <typename T>
8
void f (T)
9
{
10
typedef int ai[(abs(0.1) > 0) ? 1 : -1];
11
}
12
13
int main()
14
{
15
f(1);
16
}