summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nested-name-spec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-24 02:37:39 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-24 02:37:39 +0000
commitd7295bad84cc5cc4d4a95b9df9078642d9a84b25 (patch)
tree86e958824b38cebc0d3555fbbd6086be59c60e57 /clang/test/SemaCXX/nested-name-spec.cpp
parent3923466e824b5d76d1003433b30740778a8df607 (diff)
downloadbcm5719-llvm-d7295bad84cc5cc4d4a95b9df9078642d9a84b25.tar.gz
bcm5719-llvm-d7295bad84cc5cc4d4a95b9df9078642d9a84b25.zip
Test case for previous commit
llvm-svn: 126360
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r--clang/test/SemaCXX/nested-name-spec.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp
index 1eb7014743c..fef70931717 100644
--- a/clang/test/SemaCXX/nested-name-spec.cpp
+++ b/clang/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 *'}}
OpenPOWER on IntegriCloud