diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-14 17:00:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-14 17:00:16 +0000 |
commit | 9909df3b3afe294f81a935edf7a0ffea15834c39 (patch) | |
tree | 9283571d3e2deea1b726b327f4a9371a5faffa37 /clang/test/Analysis/misc-ps-region-store.cpp | |
parent | 85bc995c5bdd5c5b2a7b12284ea35d6e4deb6ceb (diff) | |
download | bcm5719-llvm-9909df3b3afe294f81a935edf7a0ffea15834c39.tar.gz bcm5719-llvm-9909df3b3afe294f81a935edf7a0ffea15834c39.zip |
Handle 'UsingDirective' in CFGRecStmtDeclVisitor.
llvm-svn: 125491
Diffstat (limited to 'clang/test/Analysis/misc-ps-region-store.cpp')
-rw-r--r-- | clang/test/Analysis/misc-ps-region-store.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Analysis/misc-ps-region-store.cpp b/clang/test/Analysis/misc-ps-region-store.cpp index e87fba41f96..1dba09d76dd 100644 --- a/clang/test/Analysis/misc-ps-region-store.cpp +++ b/clang/test/Analysis/misc-ps-region-store.cpp @@ -225,3 +225,18 @@ void Foo3<T>::Bar() { Baz(); value_(); } + +//===---------------------------------------------------------------------===// +// Handle misc. C++ constructs. +//===---------------------------------------------------------------------===// + +namespace fum { + int i = 3; +}; + +void test_namespace() { + // Previously triggered a crash. + using namespace fum; + int x = i; +} + |