--- a/tests/ctags/test_input.rs
+++ b/tests/ctags/test_input.rs
@@ -32,8 +32,9 @@
 
 static size: uint = 1;
 
+#[cfg(test)]
 struct S1 {
-	only_field: [int, ..size]
+	priv only_field: [int, ..size]
 }
 
 macro_rules! test_macro