Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

11 lines
366 B
C++

// RUN: %check_clang_tidy %s misc-macro-parentheses %t -- -- -DVAL=0+0
// The previous command-line is producing warnings and fixes with the source
// locations from a virtual buffer. VAL is replaced by '0+0'.
// Fixes could not be applied and should not be reported.
int foo() { return VAL; }
#define V 0+0
int bar() { return V; }
// CHECK-FIXES: #define V (0+0)