gcc/testsuite/g++.dg/template/init4.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2004 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 15 Dec 2004 <[email protected]> |
| 5 | |
| 6 | // PR 18905. bogus error |
| 7 | // Origin: Andrew Pinski <[email protected]> |
| 8 | |
| 9 | int f1(char); |
| 10 | template <int t> |
| 11 | void f(void) |
| 12 | { |
| 13 | const char* const suffixes = "plpv"; |
| 14 | f1(suffixes[t]); |
| 15 | } |