diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-21 14:34:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-22 14:28:48 +0200 |
| commit | a27f3e3fd1e4d16160f8885b6b06665b5319f56c (patch) | |
| tree | b033935392cbadf6f85d2dbddf433a88e323aeeb /tests/codegen/debug-line-directives-only.rs | |
| parent | ed93c1783b404d728d4809973a0550eb33cd293f (diff) | |
| download | rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip | |
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/debug-line-directives-only.rs')
| -rw-r--r-- | tests/codegen/debug-line-directives-only.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/codegen/debug-line-directives-only.rs b/tests/codegen/debug-line-directives-only.rs deleted file mode 100644 index 709c8789bf8..00000000000 --- a/tests/codegen/debug-line-directives-only.rs +++ /dev/null @@ -1,27 +0,0 @@ -// Verify that the only debuginfo generated are the line directives. -// -//@ compile-flags: -C debuginfo=line-directives-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: DebugDirectivesOnly -// CHECK: !DILocation -// CHECK-NOT: !DIBasicType |
