summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error3.C
blob: 7e8cf8de000f8c1e4836cd69e177dd7a341cc779 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-fshow-column" }
// PR c++/10779

static void InstantiateConstraint(const float&, unsigned,
                                  void(*AddFunction)(const TYPE&,bool&,
                                                     char*, char*,
                                                     unsigned*));
// { dg-error "64: ISO C\\+\\+ forbids declaration of 'parameter' with no type" "" { target *-*-* }  { 5 } }
// { dg-error "60: 'TYPE' does not name a type" "" { target *-*-* } { 5 } }