FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template18.C
blobe57739baba9ffc9ffe192f11a9d9ba686f7df3e8
1 // GROUPS passed templates
2 // Bug: g++ emits template instances when it shouldn't.
3 // Special g++ Options: -g -fno-inline -Wno-deprecated -fexternal-templates
5 // We mark this XFAIL because we can't test for expected linker errors.
6 // If we get an XPASS for this testcase, that's a bug.
8 // Suppressed-instantiation tests like this are known to break on
9 // Cygwin, because of the MULTIPLE_SYMBOL_SPACES stuff.  This is OK.
11 // (OK) excess errors test - XFAIL *-*-*
13 #pragma implementation "irrelevant_file"
14 #line 1 "template18.h"
15 #pragma interface
16 template <class T> inline T min (T a, T b) { return a<b?a:b; }
17 #line 13 "template18.C"
19 main()
21   min (1, 1);           // should produce an undefined symbol error.