diff options
author | Anders Carlsson <andersca@mac.com> | 2009-04-13 18:03:33 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-04-13 18:03:33 +0000 |
commit | 1235bbce7ee376fbb864b2713bab5fdfa95ca310 (patch) | |
tree | 0b7a46fc5bfd96b740661dc9390173c4e3cb6be4 /clang/test/CodeGenCXX/mangle.cpp | |
parent | 0c08f6fddec505336474209e911866d919a6a3a1 (diff) | |
download | bcm5719-llvm-1235bbce7ee376fbb864b2713bab5fdfa95ca310.tar.gz bcm5719-llvm-1235bbce7ee376fbb864b2713bab5fdfa95ca310.zip |
Use the new guard variable mangling function and get rid of the old code.
llvm-svn: 68971
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index f608a22f032..0f135270233 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -42,5 +42,9 @@ extern "C" { namespace N { int unmangled_variable; } } // RUN: grep _ZN1N1iE %t | count 1 && namespace N { int i; } -// RUN: grep _ZZN1N1fEiiE1b %t | count 2 +// RUN: grep _ZZN1N1fEiiE1b %t | count 2 && namespace N { int f(int, int) { static int b; return b; } } + +// RUN: grep "_ZZN1N1gEvE1a =" %t | count 1 && +// RUN: grep "_ZGVZN1N1gEvE1a =" %t | count 1 +namespace N { int h(); void g() { static int a = h(); } } |