Debian Codegraph @

gcc/testsuite/g++.dg/template/array27.C

raw
1 // PR c++/47808
2 // { dg-options "" }
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 }