================
@@ -180,3 +182,11 @@ void test2() {
   // expected-error@-3 {{use of undeclared identifier}}
   // expected-note@-4 {{cannot use initializer list at the beginning of a 
macro argument}}
 }
+
+#define LIM() 10 
+// expected-note@-1 {{'LIM' is defined here as a function-like macro; did you 
mean 'LIM(...)'}}
+
+void test3() {
+  int iter = LIM;
----------------
shafik wrote:

We should also cover other cases as well in the tests e.g.:

```cpp
#define F() 42
int x = F;

void g(int);

void f() {
    F + 1;
    g(F);
}
```

https://github.com/llvm/llvm-project/pull/123495
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to