From 0982b702c0e6f8d17473690e6a0a47847817eb2d Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 5 May 2016 19:16:58 +0000 Subject: [PATCH] Add forgotten test from r268594. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268665 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp 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}} -- 2.40.0