diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-07-19 20:33:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-07-19 20:33:49 +0000 |
commit | d626ec404fd0f27244363200f1a85a7db219cd11 (patch) | |
tree | 895702366a72b2882138bf368918e9e0ca181363 /test/Sema/uninit-variables.c | |
parent | 4cc1187e8a04f1f36e8c3656f65097e770bdc437 (diff) |
Fix assertion failure in UninitializedValues.cpp where an lvalue to rvalue conversion is wrapped in a parenthesis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/uninit-variables.c')
-rw-r--r-- | test/Sema/uninit-variables.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/uninit-variables.c b/test/Sema/uninit-variables.c index 0caab3df18..6c3c7c71c8 100644 --- a/test/Sema/uninit-variables.c +++ b/test/Sema/uninit-variables.c @@ -353,6 +353,11 @@ int test52(int a, int b) { return x; // expected-warning {{variable 'x' may be uninitialized when used here}} } +void test53() { + int x; + int y = (x); +} + // This CFG caused the uninitialized values warning to inf-loop. extern int PR10379_g(); void PR10379_f(int *len) { |