r268665 - Add forgotten test from r268594.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu May 5 12:16:59 PDT 2016
Author: rsmith
Date: Thu May 5 14:16:58 2016
New Revision: 268665
URL: http://llvm.org/viewvc/llvm-project?rev=268665&view=rev
Log:
Add forgotten test from r268594.
Added:
cfe/trunk/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp
Added: cfe/trunk/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp?rev=268665&view=auto
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp (added)
+++ cfe/trunk/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp Thu May 5 14:16:58 2016
@@ -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}}
More information about the cfe-commits
mailing list