2011-09-07 Lawrence Crowl <crowl@google.com>
* a0vardef.h: New.
* c0vardef1.h: New.
* x4structover1.cc: New.
* c0vardef2.h: New.
* x0structover1.h: New.
* c4vardef.cc: New.
* x4structover2.cc: New.
* x0structover2.h: New.
* x4resolve1.cc: Add more overloaded calls.
* x4resolve2.cc: Add more overloaded calls.
===================================================================
@@ -1,9 +1,12 @@
-// pph asm xwant 53261
+// pph asm xwant 03374
#include "x0resolve1.h"
#include "x0resolve2.h"
int caller()
{
- return overloader1() + overloader2();
+ int t = intfunc(3l) + fltfunc(2.0);
+ t += intfunc(3) + fltfunc(2.0f);
+ t += overloader1() + overloader2();
+ return t;
}
===================================================================
@@ -0,0 +1,4 @@
+#ifndef A0VARDEF_H
+#define A0VARDEF_H
+int variable = 1;
+#endif
===================================================================
@@ -0,0 +1,4 @@
+#ifndef C0VARDEF1_H
+#define C0VARDEF1_H
+#include "a0vardef.h"
+#endif
===================================================================
@@ -1,9 +1,12 @@
-// pph asm xwant 12527
+// pph asm xwant 37643
#include "x0resolve2.h"
#include "x0resolve1.h"
int caller()
{
- return overloader1() + overloader2();
+ int t = intfunc(3l) + fltfunc(2.0);
+ t += intfunc(3) + fltfunc(2.0f);
+ t += overloader1() + overloader2();
+ return t;
}
===================================================================
@@ -0,0 +1,9 @@
+// { dg-xfail-if "BOGUS" { "*-*-*" } { "-fpph-map=pph.map" } }
+
+
+#include "x0structover1.h"
+#include "x0structover2.h"
+
+int func2() {
+ return func( (S*)0 );
+}
===================================================================
@@ -0,0 +1,4 @@
+#ifndef C0VARDEF2_H
+#define C0VARDEF2_H
+#include "a0vardef.h"
+#endif
===================================================================
@@ -0,0 +1,5 @@
+#ifndef X0STRUCTOVER1_H
+#define X0STRUCTOVER1_H
+#include "a0rawstruct.h"
+inline int func( S* p ) { if ( p ) return 1; else return 0; }
+#endif
===================================================================
@@ -0,0 +1,4 @@
+// pph asm xdiff 00553
+
+#include "c0vardef1.h"
+#include "c0vardef2.h"
===================================================================
@@ -0,0 +1,6 @@
+#include "x0structover2.h"
+#include "x0structover1.h"
+
+int func2() {
+ return func( (S*)0 );
+}
===================================================================
@@ -0,0 +1,4 @@
+#ifndef X0STRUCTOVER2_H
+#define X0STRUCTOVER2_H
+#include "a0rawstruct.h"
+#endif