* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / inline-2.c
blob72b61c369527dc91216076dc2d334d1d1629d51f
1 /* { dg-do link } */
2 /* { dg-options "-O" } */
4 /* When optimized we expect the call to foo () in bar to be inlined
5 and the call to link_error optimized away. */
7 extern void link_error (void);
8 inline int __attribute__((always_inline)) foo(void) { return 0; }
10 int main()
12 int (*fn)(void) = foo;
13 if (fn())
14 link_error ();
15 return 0;