blob: d0fbf00244bf27210d763d994a206aef13f39c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// { dg-do assemble }
// { dg-prune-output "mangled name" }
//
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 29 Apr 2001 <nathan@codesourcery.com>
// Bug 2664. We failed to convert_from_reference for non-type
// template parms.
struct cow { };
cow c;
void func (cow &c) {}
void operator-(cow &c) {}
template<cow &C> void test()
{
func(C); //OK
-C; //bogus error
}
int main()
{
test<c> ();
}
|