[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / gnu-inline-global-redecl.C
blobfc72d26fb8f9b62731431020f5c99fe39417318a
1 /* Test __attribute__((gnu_inline)).
3    Check that we don't get out-of-line definitions for extern inline
4    gnu_inline functions, regardless of redeclaration.
6  */
8 /* { dg-do link } */
9 /* { dg-options "-O" } */ // such that static functions are optimized out
11 #include "gnu-inline-common.h"
13 decl(extern, fn)
14 gnuindef(fn, 0)
15 decl(extern, fn)
17 int main () {
18   fn ();