aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template18.C
blob: bcee653c64e85d3111573f8707270bf298734e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// Special g++ Options: -g -fexternal-templates
// GROUPS passed templates
// Bug: g++ emits template instances when it shouldn't.
// Special g++ Options: -g -fexternal-templates

#pragma implementation "irrelevant_file"
#line 1 "wa.h"
#pragma interface		// ERROR - , XFAIL *-*-*
template <class T> inline T min (T a, T b) { return a<b?a:b; }
#line 3 "wa.C" 

main()
{
  min (1, 1); 
}// UNKNOWN "min"