llvm-project/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p3.cpp

4 lines
153 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
int& r1; // expected-error{{declaration of reference variable 'r1' requires an initializer}}
extern int& r2;