blob: f070bae948bfc59e60b0d388b9c8c6eeb4f76662 [file] [log] [blame]
// This file is distributed under the University of Illinois Open Source License.
// See LICENSE.TXT for details.
// RUN: cxx_compiler -c cxx_rtti cxx_exceptions %s -o %t.o
// RUN: linker %t.o -o %t%exeext
// RUN: bindump %t.o| FileCheck %s
// Test run-time library includes support for builtin type "wchar_t"
wchar_t global_var = true;
wchar_t const *global_ptr;
// CHECK-DAG: _ZTIw
void foo1() { throw global_var; }
// CHECK-DAG: _ZTIPw
void foo2() { throw &global_var; }
// CHECK-DAG: _ZTIPKw
void foo3() { throw global_ptr; }
int main(int argc, char *argv[]) {
return 0;
}