aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c
new file mode 100644
index 000000000..5658e3605
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990928-1.c
@@ -0,0 +1,10 @@
+/* Make sure that debug information can be generated
+ for inline functions containing incomplete type
+ declarations. */
+inline int foo (void)
+{
+ struct imcomplete1 * ptr1;
+ union incomplete2 * ptr2;
+ enum incomplete3 * ptr3;
+ return 1;
+}