OSDN Git Service

Some raw string changes from N3077
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / vararg-1.C
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: <wanderer@rsu.ru>
5 //  Reduced by: <bangerth@dealii.org>
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