aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/contrib/reghunt/examples/29106.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/contrib/reghunt/examples/29106.cc')
-rw-r--r--gcc-4.9/contrib/reghunt/examples/29106.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/contrib/reghunt/examples/29106.cc b/gcc-4.9/contrib/reghunt/examples/29106.cc
new file mode 100644
index 000000000..ba028ba13
--- /dev/null
+++ b/gcc-4.9/contrib/reghunt/examples/29106.cc
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main()
+{
+ int* const savepos = sizeof(*savepos) ? 0 : 0;
+
+ // code for the next line is left out!
+ printf("size of thingy is %d\n", sizeof(*savepos));
+}