diff options
Diffstat (limited to 'tests/codegen/debug-line-tables-only.rs')
| -rw-r--r-- | tests/codegen/debug-line-tables-only.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/codegen/debug-line-tables-only.rs b/tests/codegen/debug-line-tables-only.rs deleted file mode 100644 index d50bffe6e60..00000000000 --- a/tests/codegen/debug-line-tables-only.rs +++ /dev/null @@ -1,27 +0,0 @@ -// Verify that the only debuginfo generated are the line tables. -// -//@ compile-flags: -C debuginfo=line-tables-only - -#[repr(C)] -struct StructType { - a: i64, - b: i32, -} - -extern "C" { - fn creator() -> *mut StructType; - fn save(p: *const StructType); -} - -fn main() { - unsafe { - let value: &mut StructType = &mut *creator(); - value.a = 7; - save(value as *const StructType) - } -} - -// CHECK: !DICompileUnit -// CHECK: emissionKind: LineTablesOnly -// CHECK: !DILocation -// CHECK-NOT: !DIBasicType |
