From: topecongiro Date: Thu, 28 Sep 2017 11:15:33 +0000 (+0900) Subject: Add a test for #2003 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c66560fee6d455bd403a28e4360e545cee36f7f9;p=rust.git Add a test for #2003 --- diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index e3d489411ad..880566d3d91 100644 --- a/tests/source/fn-simple.rs +++ b/tests/source/fn-simple.rs @@ -52,3 +52,10 @@ pub fn waltz(cwd: &Path) -> CliAssert { } } } + +// #2003 +mod foo { + fn __bindgen_test_layout_i_open0_c_open1_char_a_open2_char_close2_close1_close0_instantiation() { + foo(); + } +} diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index 06b0fecab46..000c62310c8 100644 --- a/tests/target/fn-simple.rs +++ b/tests/target/fn-simple.rs @@ -93,3 +93,11 @@ pub fn waltz(cwd: &Path) -> CliAssert { } } } + +// #2003 +mod foo { + fn __bindgen_test_layout_i_open0_c_open1_char_a_open2_char_close2_close1_close0_instantiation() + { + foo(); + } +}