projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6320529
)
testcase
author
Matthias Braun
<matze@braunis.de>
Wed, 4 Jun 2008 13:23:02 +0000
(13:23 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 4 Jun 2008 13:23:02 +0000
(13:23 +0000)
[r19972]
parsetest/cp_error033.c
[new file with mode: 0644]
patch
|
blob
diff --git a/parsetest/cp_error033.c
b/parsetest/cp_error033.c
new file mode 100644
(file)
index 0000000..
07e4e42
--- /dev/null
+++ b/
parsetest/cp_error033.c
@@ -0,0
+1,23
@@
+
+struct A {
+ int a, b;
+};
+
+enum typecode { C1, C2 };
+
+static struct A
+deduce_conversion(from, to)
+ enum typecode from, to;
+{
+ struct A result = { 1, 2 };
+ return result;
+}
+
+struct A globa[4];
+int x = 1;
+
+int main(int argc, char **argv)
+{
+ globa[x] = deduce_conversion(C1, C2);
+ return 0;
+}