Permalink
Browse files

* tests/data/codegraph/info.txt: test

  • Loading branch information...
1 parent a3a488c commit 817aa949af81509ad0a41260c69cd22dc4dc9d6f @aryx aryx committed Oct 3, 2012
View
@@ -346,3 +346,4 @@ external/ocamlbdb/libcamlbdb.a
/graph_code.marshall.matrix
/tests/c/codegraph/graph_code.marshall.matrix
/tests/java/codegraph/graph_code.marshall.matrix
+/tests/data/codegraph/graph_code.marshall.matrix
@@ -0,0 +1,34 @@
+// see http://dsmweb.org/dsmweb/en/understand-dsm/technical-dsm-tutorial/partitioning.html
+
+void a() {
+ c();
+}
+
+void b() {
+ c();
+ d();
+}
+
+void c() {
+ a();
+ e();
+}
+
+void d() {
+ a();
+ g();
+}
+
+void e() {
+}
+
+void f() {
+ c();
+ e();
+ g();
+}
+
+void g() {
+ b();
+ c();
+}
@@ -0,0 +1,23 @@
+#define FOO 1
+
+#define FOOBAR(a,b) a+b
+
+int buf;
+
+int foo(int a, int b) {
+ return a+b;
+}
+
+struct x {
+ int a;
+ int b;
+};
+
+enum X {
+ X_FOO1,
+ X_FOO2,
+};
+
+
+int xopen() {
+}
@@ -0,0 +1,7 @@
+
+#define cp 1
+
+extern int buf;
+
+int xopen();
+
@@ -0,0 +1,3 @@
+void printf() {
+}
+
@@ -0,0 +1,11 @@
+struct buf;
+
+
+struct use_buf {
+ struct buf *a;
+};
+
+struct buf {
+ struct use_buf *n;
+};
+
@@ -0,0 +1,25 @@
+# -*- org -*-
+
+* info.txt
+This file.
+
+* basic.c
+
+* basic.h
+
+* builtins.c
+
+* forward.c
+
+* algo
+
+* use.c
+
+* other.h
+
+* main1.c
+
+* main2.c
+
+
+
@@ -0,0 +1,3 @@
+void main() {
+ foo(1,2);
+}
@@ -0,0 +1,3 @@
+void main() {
+ foo(1,2);
+}
@@ -0,0 +1 @@
+int xopen();
View
@@ -0,0 +1,14 @@
+
+void bar() {
+ foo(1, FOO);
+ foo(1, FOOBAR(1,2));
+ foo(1, cp);
+}
+
+struct y {
+ struct x a;
+};
+
+void use_struct_x(struct x o) {
+ printf("%d", o.a);
+}

0 comments on commit 817aa94

Please sign in to comment.