X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Ftest%2Ffehler36.c;h=ec2204296f905b08c605b4b47d03b634db9c8131;hb=d26a636ba1711bedacb2812da23ee2f81aeef64c;hp=da7647cf279af6220a8e6cc4b2109043ccf4da13;hpb=3ce7339164a5a32163778dc82175409f5bd7e3b1;p=libfirm diff --git a/ir/be/test/fehler36.c b/ir/be/test/fehler36.c index da7647cf2..ec2204296 100644 --- a/ir/be/test/fehler36.c +++ b/ir/be/test/fehler36.c @@ -1,13 +1,19 @@ #include #include -float t2() +#ifdef __GNUC__ +#define NO_INLINE __attribute__((noinline)) +#else +#define NO_INLINE __declspec(noinline) +#endif + +float NO_INLINE t2() { float a; return a + 12.54f; } -float t() +float NO_INLINE t() { exit(0); } @@ -15,5 +21,6 @@ float t() int main() { t(); + t2(); return 0; }