aboutsummaryrefslogtreecommitdiff
path: root/test/profile/Inputs/instrprof-shared-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile/Inputs/instrprof-shared-main.c')
-rw-r--r--test/profile/Inputs/instrprof-shared-main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/profile/Inputs/instrprof-shared-main.c b/test/profile/Inputs/instrprof-shared-main.c
new file mode 100644
index 000000000000..60da3b42c63f
--- /dev/null
+++ b/test/profile/Inputs/instrprof-shared-main.c
@@ -0,0 +1,13 @@
+extern int g1, g2;
+extern void foo(int n);
+
+int main() {
+ int i, j;
+ for (i = 0; i < 1000; i++)
+ for (j = 0; j < 1000; j++)
+ foo(i * j);
+
+ if (g2 - g1 == 280001)
+ return 0;
+ return 1;
+}