许杰友 Jieyou Xu (Joe) | 6e48b96 | 2024-02-22 12:10:29 | [diff] [blame] | 1 | //@ ignore-cdb: Fails with exit code 0xc0000135 ("the application failed to initialize properly") |
Michael Woerister | 5099b8c | 2014-04-10 08:25:13 | [diff] [blame] | 2 | |
许杰友 Jieyou Xu (Joe) | 6e48b96 | 2024-02-22 12:10:29 | [diff] [blame] | 3 | //@ aux-build:issue-13213-aux.rs |
Brian Anderson | df290f1 | 2015-03-06 02:33:58 | [diff] [blame] | 4 | |
Alexander Regueiro | fe30743 | 2019-03-12 00:49:17 | [diff] [blame] | 5 | extern crate issue_13213_aux; |
Michael Woerister | 5099b8c | 2014-04-10 08:25:13 | [diff] [blame] | 6 | |
许杰友 Jieyou Xu (Joe) | 6e48b96 | 2024-02-22 12:10:29 | [diff] [blame] | 7 | //@ compile-flags:-g |
Michael Woerister | 5099b8c | 2014-04-10 08:25:13 | [diff] [blame] | 8 | |
| 9 | // This tests make sure that we get no linker error when using a completely inlined static. Some |
| 10 | // statics that are marked with AvailableExternallyLinkage in the importing crate, may actually not |
| 11 | // be available because they have been optimized out from the exporting crate. |
| 12 | fn main() { |
Alexander Regueiro | fe30743 | 2019-03-12 00:49:17 | [diff] [blame] | 13 | let b: issue_13213_aux::S = issue_13213_aux::A; |
Alex Crichton | 33fb5bb | 2015-04-10 20:39:51 | [diff] [blame] | 14 | println!("Nothing to do here..."); |
Michael Woerister | 5099b8c | 2014-04-10 08:25:13 | [diff] [blame] | 15 | } |