diff --git a/tests/cil/merge.c b/tests/cil/merge.c
index 2209ec979a27df186cb7db39881389ff73f9b2d5..9444e898c78e497cd044587c1ce654263f3be829 100644
--- a/tests/cil/merge.c
+++ b/tests/cil/merge.c
@@ -1,4 +1,4 @@
 /* run.config
    OPT: tests/cil/merge2.c -print
 */
-int x;
+extern int x;
diff --git a/tests/metrics/used-files.i b/tests/metrics/used-files.i
index 9960578781349b3000e74f31581b81c3f1558b7b..dee7f1945c2e8bf0642c26f0123b55da13483f14 100644
--- a/tests/metrics/used-files.i
+++ b/tests/metrics/used-files.i
@@ -5,7 +5,7 @@
 
 int h(void);
 
-int glob;
+extern int glob;
 
 void indirect(void);