about summary refs log tree commit diff
path: root/tests/ui/extern/empty-struct-extern-fn-16441.rs
blob: 82f2eee611d06c10600b9f9f01c1d47841e74a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Regression test for https://github.com/rust-lang/rust/issues/16441

//@ run-pass
#![allow(dead_code)]

struct Empty;

// This used to cause an ICE
#[allow(improper_ctypes_definitions)]
extern "C" fn ice(_a: Empty) {}

fn main() {
}