summaryrefslogtreecommitdiffstats
path: root/test/Analysis/PR9741.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/PR9741.cpp')
-rw-r--r--test/Analysis/PR9741.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/PR9741.cpp b/test/Analysis/PR9741.cpp
new file mode 100644
index 0000000..e20e56c
--- /dev/null
+++ b/test/Analysis/PR9741.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -cc1 -std=c++0x -Wuninitialized -verify %s
+
+void f() {
+ int a[] = { 1, 2, 3 };
+ unsigned int u = 0;
+ for (auto x : a)
+ ;
+}
OpenPOWER on IntegriCloud