]> granicus.if.org Git - clang/commitdiff
Test case for previous commit
authorDouglas Gregor <dgregor@apple.com>
Thu, 24 Feb 2011 02:37:39 +0000 (02:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 24 Feb 2011 02:37:39 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126360 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/nested-name-spec.cpp

index 1eb7014743cb1a3e2f250e34256d49caa3ba841b..fef70931717e8c733719ff64531daf503e62113c 100644 (file)
@@ -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 *'}}