summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajan Arora <rarora@redhat.com>2009-02-18 20:24:35 -0500
committerRajan Arora <rarora@redhat.com>2009-02-18 20:24:35 -0500
commit38b925085d04328c9c0511fc6a7de95a64867835 (patch)
treea86fde779156882f681926f4067915d34c15b9f2
parentd5f0c423890f54b7f12da85fbcfc61879efc368e (diff)
downloadsystemtap-steved-38b925085d04328c9c0511fc6a7de95a64867835.tar.gz
systemtap-steved-38b925085d04328c9c0511fc6a7de95a64867835.tar.xz
systemtap-steved-38b925085d04328c9c0511fc6a7de95a64867835.zip
Adding test case for PR9719 fix
-rw-r--r--ChangeLog4
-rwxr-xr-xtestsuite/semko/typemismatch.stp8
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index da44ffaf..435421c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-02-18 Rajan Arora <rarora@redhat.com>
+ * testuite/semko/typemismatch.stp: New test.
+
+2009-02-18 Rajan Arora <rarora@redhat.com>
+
* elaborate.cxx (typeresolution_info::mismatch): Generate semantic
error for the token where type was resolved and add to chain
* elaborate.h (struct typeresolution_info: public visitor): New
diff --git a/testsuite/semko/typemismatch.stp b/testsuite/semko/typemismatch.stp
new file mode 100755
index 00000000..94a49d53
--- /dev/null
+++ b/testsuite/semko/typemismatch.stp
@@ -0,0 +1,8 @@
+#! stap -p2
+
+
+global noo
+
+probe begin { foo = 1 ; foo = "bar" ; noo = 4 }
+
+probe end { foo = "zoo" ; foo <<< 2 ; noo = "zoo" } \ No newline at end of file