1 // See http://llvm.org/bugs/show_bug.cgi?id=11468
8 void PrintString(const std::string
& msg
) const {
9 fprintf(stderr
, "%s\n", msg
.c_str());
11 void Throw(const char& arg
) const {
12 PrintString("PrintString called!"); // this line is important
19 fprintf(stderr
, "&a before = %p\n", &a
);
22 } catch(const char&) {
23 fprintf(stderr
, "&a in catch = %p\n", &a
);
25 fprintf(stderr
, "&a final = %p\n", &a
);