From: Richard Smith Date: Thu, 5 May 2016 19:16:58 +0000 (+0000) Subject: Add forgotten test from r268594. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0982b702c0e6f8d17473690e6a0a47847817eb2d;p=clang Add forgotten test from r268594. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268665 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp b/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp new file mode 100644 index 0000000000..6c9379fac2 --- /dev/null +++ b/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -std=c++11 -verify %s + +enum class EC { ec }; +using EC::ec; // expected-error {{using declaration cannot refer to a scoped enumerator}}