From fa0b48fd2af19f862242dc3643e4e95baea25d4e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 24 Feb 2011 02:37:39 +0000 Subject: [PATCH] Test case for previous commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126360 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/nested-name-spec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/SemaCXX/nested-name-spec.cpp b/test/SemaCXX/nested-name-spec.cpp index 1eb7014743..fef7093171 100644 --- a/test/SemaCXX/nested-name-spec.cpp +++ b/test/SemaCXX/nested-name-spec.cpp @@ -263,3 +263,6 @@ namespace rdar7980179 { class A { void f0(); }; // expected-note {{previous}} int A::f0() {} // expected-error {{out-of-line definition of 'rdar7980179::A::f0' differ from the declaration in the return type}} } + +namespace alias = A; +double *dp = (alias::C*)0; // expected-error{{cannot initialize a variable of type 'double *' with an rvalue of type 'alias::C *'}} -- 2.40.0