summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test6-01.txt10
-rw-r--r--test/test6-03.txt4
-rw-r--r--test/test6-04.txt6
-rw-r--r--test/test6.c6
4 files changed, 9 insertions, 17 deletions
diff --git a/test/test6-01.txt b/test/test6-01.txt
index 2b4c032..5d0b53b 100644
--- a/test/test6-01.txt
+++ b/test/test6-01.txt
@@ -144,13 +144,13 @@ function_decl func3 test6.c 18:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test6.c 18:21 - function result
+ result_decl test6.c 18:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl aptr test6.c 18:17 - argument
+ parm_decl a test6.c 18:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -165,7 +165,7 @@ function_decl func3 test6.c 18:6
if_stmt - statement
eq_expr test6.c 20:10 - condition
- isUsed: 1
- parm_decl aptr test6.c 18:17 - operand
+ parm_decl a test6.c 18:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -178,13 +178,13 @@ function_decl func3 test6.c 18:6
integer_cst 64 - parm size
integer_cst 0 - operand
return_expr test6.c 21:9 - then
- cleanup_point_expr test6.c 23:16 - statement
+ cleanup_point_expr test6.c 23:13 - statement
expr_stmt - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl aptr test6.c 18:17 - operand
+ parm_decl a test6.c 18:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
diff --git a/test/test6-03.txt b/test/test6-03.txt
index b1f3abe..6732621 100644
--- a/test/test6-03.txt
+++ b/test/test6-03.txt
@@ -2,7 +2,3 @@ test6.c: In function 'void func1(int*)':
test6.c:7:13: warning: Using variable without check for NULL
*a = 100;
^
-test6.c: In function 'void func3(int*)':
-test6.c:23:16: warning: Using variable without check for NULL
- *aptr = 300;
- ^
diff --git a/test/test6-04.txt b/test/test6-04.txt
index 0267aac..979c686 100644
--- a/test/test6-04.txt
+++ b/test/test6-04.txt
@@ -42,12 +42,8 @@ cleanup_point_expr
expr_stmt
convert_expr
modify_expr
-test6.c: In function 'void func3(int*)':
-test6.c:23:16: warning: Using variable without check for NULL
- *aptr = 300;
- ^
indirect_ref
-parm_decl aptr
+parm_decl a
pointer_type
integer_type
type_decl int
diff --git a/test/test6.c b/test/test6.c
index d9203b2..06dc7df 100644
--- a/test/test6.c
+++ b/test/test6.c
@@ -15,10 +15,10 @@ void func2(int *a)
*a = 200;
}
-void func3(int *aptr)
+void func3(int *a)
{
- if (!aptr)
+ if (!a)
return;
- *aptr = 300;
+ *a = 300;
}