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