aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/for-range.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-10-18 17:56:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-10-18 17:56:02 +0000
commitb1502bcd67fb593a95cbf73ec3814f4015666da0 (patch)
treeb9ed0b953ad9ec8e3899b1913f37c9ac1d66e3a9 /test/CodeGenCXX/for-range.cpp
parenta9b1aa5e6951b1b3bfbba32764edf2b5dd013d7a (diff)
DR1442: In a range-based for statement, namespace 'std' is not an associated
namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/for-range.cpp')
-rw-r--r--test/CodeGenCXX/for-range.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/CodeGenCXX/for-range.cpp b/test/CodeGenCXX/for-range.cpp
index 0f35dda737..929e33ca96 100644
--- a/test/CodeGenCXX/for-range.cpp
+++ b/test/CodeGenCXX/for-range.cpp
@@ -27,10 +27,8 @@ struct D {
B *end();
};
-namespace std {
- B *begin(C&);
- B *end(C&);
-}
+B *begin(C&);
+B *end(C&);
extern B array[5];
@@ -69,8 +67,8 @@ void for_range() {
A a;
for (B b : C()) {
// CHECK: call void @_ZN1CC1Ev(
- // CHECK: = call %struct.B* @_ZSt5beginR1C(
- // CHECK: = call %struct.B* @_ZSt3endR1C(
+ // CHECK: = call %struct.B* @_Z5beginR1C(
+ // CHECK: = call %struct.B* @_Z3endR1C(
// CHECK: br label %[[COND:.*]]
// CHECK: [[COND]]: