gcc/testsuite/g++.dg/pr63384.C
raw| 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ |
| 2 | /* { dg-options "-O2 -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fsel-sched-reschedule-pipelined -fvar-tracking-assignments -ftree-vectorize -w" } */ |
| 3 | |
| 4 | template <class T> T **make_test_matrix() { |
| 5 | T **data = new T *; |
| 6 | for (int i = 0; i < 1000; i++) |
| 7 | ; |
| 8 | } |
| 9 | |
| 10 | template <typename T> void test() { T **c = make_test_matrix<T>(); } |
| 11 | |
| 12 | main() { test<float>(); } |