summaryrefslogtreecommitdiff
path: root/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p3.cpp
blob: 54840f52663f2e1d0a6d26a1ba1080b28f2a23a4 (plain)
1
2
3
// RUN: clang-cc -fsyntax-only -verify %s
int& r1;	// expected-error{{declaration of reference variable 'r1' requires an initializer}}
extern int& r2;