summaryrefslogtreecommitdiff
path: root/lib/asan/tests/asan_exceptions_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/tests/asan_exceptions_test.cc')
-rw-r--r--lib/asan/tests/asan_exceptions_test.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/asan/tests/asan_exceptions_test.cc b/lib/asan/tests/asan_exceptions_test.cc
deleted file mode 100644
index ecd406de7561f..0000000000000
--- a/lib/asan/tests/asan_exceptions_test.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// See http://llvm.org/bugs/show_bug.cgi?id=11468
-#include <stdio.h>
-#include <string>
-
-class Action {
- public:
- Action() {}
- void PrintString(const std::string& msg) const {
- fprintf(stderr, "%s\n", msg.c_str());
- }
- void Throw(const char& arg) const {
- PrintString("PrintString called!"); // this line is important
- throw arg;
- }
-};
-
-int main() {
- const Action a;
- fprintf(stderr, "&a before = %p\n", &a);
- try {
- a.Throw('c');
- } catch(const char&) {
- fprintf(stderr, "&a in catch = %p\n", &a);
- }
- fprintf(stderr, "&a final = %p\n", &a);
- return 0;
-}