38 lines · c
1// RUN: %clang -cc1 -print-stats %s 2>&1 | FileCheck %s2// CHECK: 7 local SLocEntries allocated3//4// Verify that the macro arg expansion is split to two file ids, we have 7 file5// ids rather than 6:6// 0: invalid file id7// 1: main file8// 2: builtin file9// 3: scratch space for __GCC_[CON|DE]STRUCTIVE_SIZE macros10// 4: macro expansion for X11// 5: macro arg expansions for 112// 6: macro arg expansions for == 213#define X(x) (int)(x);14void func() {15 X(116/*************************************************************************************************/17/*************************************************************************************************/18/*************************************************************************************************/19/*************************************************************************************************/20/*************************************************************************************************/21/*************************************************************************************************/22/*************************************************************************************************/23/*************************************************************************************************/24/*************************************************************************************************/25/*************************************************************************************************/26/*************************************************************************************************/27/*************************************************************************************************/28/*************************************************************************************************/29/*************************************************************************************************/30/*************************************************************************************************/31/*************************************************************************************************/32/*************************************************************************************************/33/*************************************************************************************************/34/*************************************************************************************************/35/*************************************************************************************************/36== 2);37}38