diff options
Diffstat (limited to 'tests/ui/cfg/auxiliary')
-rw-r--r-- | tests/ui/cfg/auxiliary/cfg_inner_static.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/cfg/auxiliary/cfg_inner_static.rs b/tests/ui/cfg/auxiliary/cfg_inner_static.rs new file mode 100644 index 000000000..6a619a4e7 --- /dev/null +++ b/tests/ui/cfg/auxiliary/cfg_inner_static.rs @@ -0,0 +1,7 @@ +// this used to just ICE on compiling +pub fn foo() { + if cfg!(foo) { + static a: isize = 3; + a + } else { 3 }; +} |