summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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