1// This isn't really testing dwarf output, but rather that we can inline f 2// even though the call precedes the definition. 3 4// { dg-options "-gdwarf-2 -dA -O" } 5// { dg-final { scan-assembler "DW_TAG_inlined_subroutine" } } 6 7template <class T> 8inline T f(T); 9 10int main() 11{ 12 f(1); 13} 14 15int i; 16 17template <class T> 18inline T f(T t) { ++i; return t; } 19