summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-init-ref.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-05 00:17:29 +0000
committerChris Lattner <sabre@nondot.org>2010-09-05 00:17:29 +0000
commit24b89469acd5f386b0080f9baabaceda8e261314 (patch)
tree47139176153360fb10a61387eb31a16671e51ae3 /clang/test/SemaCXX/decl-init-ref.cpp
parent9dd55103c1f2acc17cf7a2fab0b9b69a8f1ef70a (diff)
downloadbcm5719-llvm-24b89469acd5f386b0080f9baabaceda8e261314.tar.gz
bcm5719-llvm-24b89469acd5f386b0080f9baabaceda8e261314.zip
'const std::type_info*' instead of 'std::type_info const*'
llvm-svn: 113092
Diffstat (limited to 'clang/test/SemaCXX/decl-init-ref.cpp')
-rw-r--r--clang/test/SemaCXX/decl-init-ref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/decl-init-ref.cpp b/clang/test/SemaCXX/decl-init-ref.cpp
index 922f0b78048..dc56332b5d0 100644
--- a/clang/test/SemaCXX/decl-init-ref.cpp
+++ b/clang/test/SemaCXX/decl-init-ref.cpp
@@ -21,7 +21,7 @@ extern B f();
const int& ri = (void)0; // expected-error {{reference to type 'const int' could not bind to an rvalue of type 'void'}}
int main() {
- const A& rca = f(); // expected-error {{reference initialization of type 'A const &' with initializer of type 'B' is ambiguous}}
+ const A& rca = f(); // expected-error {{reference initialization of type 'const A &' with initializer of type 'B' is ambiguous}}
A& ra = f(); // expected-error {{non-const lvalue reference to type 'A' cannot bind to a temporary of type 'B'}}
}
OpenPOWER on IntegriCloud