summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Import/array-init-loop-expr/Inputs/S.cpp5
-rw-r--r--clang/test/Import/array-init-loop-expr/test.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/Import/array-init-loop-expr/Inputs/S.cpp b/clang/test/Import/array-init-loop-expr/Inputs/S.cpp
index bf80439834b..5ca3ad47b27 100644
--- a/clang/test/Import/array-init-loop-expr/Inputs/S.cpp
+++ b/clang/test/Import/array-init-loop-expr/Inputs/S.cpp
@@ -1,3 +1,8 @@
class S {
int a[10];
};
+
+void f() {
+ S s;
+ S copy = s;
+}
diff --git a/clang/test/Import/array-init-loop-expr/test.cpp b/clang/test/Import/array-init-loop-expr/test.cpp
index ac12ecc0361..7fe109c305d 100644
--- a/clang/test/Import/array-init-loop-expr/test.cpp
+++ b/clang/test/Import/array-init-loop-expr/test.cpp
@@ -6,6 +6,5 @@
// CHECK: ArrayInitIndexExpr
void expr() {
- S s;
- S copy = s;
+ f();
}
OpenPOWER on IntegriCloud