16 lines · c
1// RUN: %clang_cc1 -ast-print %s | FileCheck %s2 3// This testcase checks the functionality of 4// Sema::ActOn{Start,End}FunctionDeclarator, specifically checking that5// ActOnEndFunctionDeclarator is called after the typedef so the enum6// is in the global scope, not the scope of f().7 8// CHECK: typedef void (*g)();9typedef void (*g) ();10// CHECK: enum11enum {12 k = -113};14// CHECK: void f() {15void f() {}16