summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/b18242.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/b18242.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/b18242.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/b18242.d b/gcc/testsuite/gdc.test/compilable/b18242.d
new file mode 100644
index 00000000000..5dcaeca73b4
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/b18242.d
@@ -0,0 +1,19 @@
+// REQUIRED_ARGS: -c
+// PERMUTE_ARGS:
+module object;
+
+class Object { }
+
+class TypeInfo { }
+class TypeInfo_Class : TypeInfo
+{
+ version(D_LP64) { ubyte[136] _x; } else { ubyte[68] _x; }
+}
+
+class Throwable { }
+
+int _d_run_main()
+{
+ try { } catch(Throwable e) { return 1; }
+ return 0;
+}