Skip to contentSkip to conversation

tests: Add test case to match meta attribute

PATCH Markus Elfring 1 participant 1 message Jul 26, 2020

lore
Share & tools
lore
#0 lore raw

…

Review line 5

Quoted 7 lines

+++ b/tests/metaattr.c

(quoted diff) +5 -0
@@ -0,0 +1,5 @@
+int main() {
+	int b __attr__ = 1;
+	int b = 1;
+	return 0;
+}

* Should such test code really work with a repeated definition of the variable “b”?

* Would you like to test here if the identifier “b” should be handled as an attribute for the variable “__attr__”?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci