Message ID | 20110816231755.D9FD81C0F8B@gchare.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/testsuite/g++.dg/pph/c0deepincl1.h b/gcc/testsuite/g++.dg/pph/c0deepincl1.h new file mode 100644 index 0000000..4360163 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c0deepincl1.h @@ -0,0 +1,6 @@ +#ifndef C0DEEPINCL1_H +#define C0DEEPINCL1_H + +int a = 0; + +#endif diff --git a/gcc/testsuite/g++.dg/pph/c1deepincl2.h b/gcc/testsuite/g++.dg/pph/c1deepincl2.h new file mode 100644 index 0000000..4861064 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c1deepincl2.h @@ -0,0 +1,8 @@ +#ifndef C1DEEPINCL2_H +#define C1DEEPINCL2_H + +#include "c0deepincl1.h" + +int b = 1; + +#endif diff --git a/gcc/testsuite/g++.dg/pph/c2deepincl.cc b/gcc/testsuite/g++.dg/pph/c2deepincl.cc new file mode 100644 index 0000000..da56b1e --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c2deepincl.cc @@ -0,0 +1,7 @@ +// pph asm xdiff 00611 + +#include "c2deepincl3.h" + +int test() { + return a + b + c; +} diff --git a/gcc/testsuite/g++.dg/pph/c2deepincl3.h b/gcc/testsuite/g++.dg/pph/c2deepincl3.h new file mode 100644 index 0000000..d3a1522 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c2deepincl3.h @@ -0,0 +1,8 @@ +#ifndef C2DEEPINCL3_H +#define C2DEEPINCL3_H + +#include "c1deepincl2.h" + +int c = 2; + +#endif