Release coccinelle-0.2.4rc5
[bpt/coccinelle.git] / tests / regexp3.cocci
index 7bc469e..e432a2c 100644 (file)
@@ -1,7 +1,7 @@
 @anyid@
 type t;
 identifier id;
-constant char* cst;
+constant char [] cst;
 fresh identifier new = id ## "_is_constant";
 @@
 
@@ -11,7 +11,7 @@ t id = cst;
 @contains@
 type t;
 identifier anyid.id;
-constant char* anyid.cst ~= ".*FOO";
+constant char [] anyid.cst ~= ".*FOO";
 fresh identifier contains = id ##"_equals_cst_that_contains_FOO";
 @@
 
@@ -21,7 +21,7 @@ t id = cst;
 @nocontain@
 type t;
 identifier anyid.id;
-constant char* anyid.cst !~= ".*FOO";
+constant char [] anyid.cst !~= ".*FOO";
 fresh identifier nocontain = id ##"_equals_cst_that_doesn_t_contain_FOO";
 @@
 
@@ -31,7 +31,7 @@ t id = cst;
 @endsby@
 type t;
 identifier anyid.id;
-constant char* anyid.cst ~= ".*FOO$";
+constant char [] anyid.cst ~= ".*FOO$";
 fresh identifier endsby = id ##"_equals_cst_that_ends_by_FOO";
 @@
 
@@ -41,7 +41,7 @@ t id = cst;
 @beginsby@
 type t;
 identifier anyid.id;
-constant char* anyid.cst ~= "^FOO";
+constant char [] anyid.cst ~= "^FOO";
 fresh identifier beginsby = id ##"_equals_cst_that_begins_by_FOO";
 @@
 
@@ -51,7 +51,7 @@ t id = cst;
 @format@
 type t;
 identifier anyid.id;
-constant char* anyid.cst ~= ".*%s";
+constant char [] anyid.cst ~= ".*%s";
 fresh identifier strformat = id ##"_is_a_format_for_at_least_a_string";
 @@