* arm.md (stack_tie): New insn. Use an idiom that the alias code
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb97.C
blobe05cc415b665d2f0162bd4b0f541d1f7d06aff25
1 // Creates bad assembly on sparc and x86
2 template<unsigned long SIZE>
3 struct Array { };
5 template<unsigned long SIZE>
6 Array<SIZE> test_ok(const Array<SIZE>& a) {
7     Array<SIZE> result;
8     return(result);
11 template<unsigned long SIZE>
12 Array<SIZE + 1> test_error(const Array<SIZE>& a) {
13     Array<SIZE + 1> result;
14     return(result);
17 int main(int argc, char* argv[]) {
18     Array<2> a;
20     test_ok(a);
21     test_error(a); // <<< MARKED LINE!
23     return(0);