[cfe-commits] r126360 - /cfe/trunk/test/SemaCXX/nested-name-spec.cpp

Douglas Gregor dgregor at apple.com
Wed Feb 23 18:37:39 PST 2011


Author: dgregor
Date: Wed Feb 23 20:37:39 2011
New Revision: 126360

URL: http://llvm.org/viewvc/llvm-project?rev=126360&view=rev
Log:
Test case for previous commit

Modified:
    cfe/trunk/test/SemaCXX/nested-name-spec.cpp

Modified: cfe/trunk/test/SemaCXX/nested-name-spec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/nested-name-spec.cpp?rev=126360&r1=126359&r2=126360&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/nested-name-spec.cpp (original)
+++ cfe/trunk/test/SemaCXX/nested-name-spec.cpp Wed Feb 23 20:37:39 2011
@@ -263,3 +263,6 @@
   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 *'}}





More information about the cfe-commits mailing list