Debian Codegraph @

gcc/testsuite/g++.dg/other/vararg-1.C

raw
1 // C++/15119
2 // This ICEd in substitute_placeholder_in_expr because it did not
3 // implement the 4 element trees.
4 // Orginal test by: <[email protected]>
5 // Reduced by: <[email protected]>
6 /* { dg-do compile } */
7
8 template<typename T>
9 const T& xmin(const T& a, const T& b);
10
11 void bar (char *, ...);
12
13 char const* descs[4];
14
15 int main() {
16 int t = 1;
17 char buf[100];
18 bar( buf, descs[ xmin(t-1,4) ], 0 );
19 return 0;
20 }