brintos

brintos / llvm-project-archived public Read only

0
0
Text · 368 B · 8378fd9 Raw
13 lines · c
1// RUN: c-index-test -test-load-source all -fspell-checking %s 2> %t2// RUN: FileCheck %s < %t3#define MACRO(X) X4 5int printf(const char *restrict, ...);6 7void f2() {8  unsigned long index;9  // CHECK: warning: format specifies type 'int' but the argument has type 'unsigned long'10  // CHECK: FIX-IT: Replace [11:17 - 11:19] with "%lu"11  MACRO(printf("%d", index));12}13