teak-llvm/clang/test/Preprocessor/macro_paste_commaext.c
Alexander Kornienko 2a8c18d991 Fix typos in clang
Found via codespell -q 3 -I ../clang-whitelist.txt
Where whitelist consists of:

  archtype
  cas
  classs
  checkk
  compres
  definit
  frome
  iff
  inteval
  ith
  lod
  methode
  nd
  optin
  ot
  pres
  statics
  te
  thru

Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few
files that have dubious fixes reverted.)

Differential revision: https://reviews.llvm.org/D44188

llvm-svn: 329399
2018-04-06 15:14:32 +00:00

21 lines
645 B
C

// RUN: %clang_cc1 %s -E | FileCheck --strict-whitespace --match-full-lines %s
// In the following tests, note that the output is sensitive to the
// whitespace *preceding* the varargs argument, as well as to
// interior whitespace. AFAIK, this is the only case where whitespace
// preceding an argument matters, and might be considered a bug in
// GCC. Nevertheless, since this feature is a GCC extension in the
// first place, we'll follow along.
#define debug(format, ...) format, ## __VA_ARGS__)
// CHECK:V);
debug(V);
// CHECK:W,1, 2);
debug(W,1, 2);
// CHECK:X, 1, 2);
debug(X, 1, 2 );
// CHECK:Y,);
debug(Y, );
// CHECK:Z,);
debug(Z,);