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