3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // based on bug report by Andrey Slepuhin <pooh@msu.ru>
8 template <const int&> struct X {};
11 X<a> x; // ok, a has external linkage
14 X<b> y; // { dg-error "" } const b has internal linkage
17 X<c> z; // ok, c has external linkage
19 extern const int c = 3;
20 X<c> z_; // { dg-bogus "" } using c as constant