aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/s2_9/builtin_long_double.xpp
diff options
context:
space:
mode:
Diffstat (limited to 'final/ABI-Testsuite/test/s2_9/builtin_long_double.xpp')
-rwxr-xr-xfinal/ABI-Testsuite/test/s2_9/builtin_long_double.xpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/s2_9/builtin_long_double.xpp b/final/ABI-Testsuite/test/s2_9/builtin_long_double.xpp
new file mode 100755
index 00000000..dad569a7
--- /dev/null
+++ b/final/ABI-Testsuite/test/s2_9/builtin_long_double.xpp
@@ -0,0 +1,21 @@
+// 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 "long double"
+
+long double global_var = 123.456;
+long double const *global_ptr;
+
+// CHECK-DAG: _ZTIe
+void foo1() { throw global_var; }
+// CHECK-DAG: _ZTIPe
+void foo2() { throw &global_var; }
+// CHECK-DAG: _ZTIPKe
+void foo3() { throw global_ptr; }
+
+int main(int argc, char *argv[]) {
+ return 0;
+}