diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-08-07 21:35:41 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-08-07 21:35:41 +0000 |
commit | 873b2e201a66ae7243aef8e96642f375a9d3ca25 (patch) | |
tree | e6300388f4570c07001c299a7c87a2286d462ee6 /test/CXX | |
parent | 493ce822337498f4b3fc2d8835ba97cd7e6622d0 (diff) | |
download | clang-873b2e201a66ae7243aef8e96642f375a9d3ca25.tar.gz |
Clean up and simplify RequireCompleteType.
No functional change intended, except that we will now produce more
"declared here" notes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp b/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp index 34202494c0..473c8b62ba 100644 --- a/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp +++ b/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp @@ -108,7 +108,7 @@ void g() { extern int incomplete[]; for (auto a : incomplete) // expected-error {{cannot use incomplete type 'int []' as a range}} ; - extern struct Incomplete also_incomplete[2]; // expected-note {{forward declaration}} + extern struct Incomplete also_incomplete[2]; // expected-note 2{{forward declaration}} for (auto &a : also_incomplete) // expected-error {{cannot use incomplete type 'struct Incomplete [2]' as a range}} ; |