| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | template< typename T, T t, decltype(t+2) v > |
| 5 | struct Convoluted {}; |
| 6 | |
| 7 | int test_array[5]; |
| 8 | |
| 9 | Convoluted< int *, test_array, nullptr > tarray; |
| 10 |
| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | template< typename T, T t, decltype(t+2) v > |
| 5 | struct Convoluted {}; |
| 6 | |
| 7 | int test_array[5]; |
| 8 | |
| 9 | Convoluted< int *, test_array, nullptr > tarray; |
| 10 |