summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr16433.f
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr16433.f')
-rw-r--r--gcc/testsuite/gfortran.dg/pr16433.f6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr16433.f b/gcc/testsuite/gfortran.dg/pr16433.f
new file mode 100644
index 000000000..cb3dcec5e
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr16433.f
@@ -0,0 +1,6 @@
+! { dg-do compile }
+ real x
+ double precision dx
+ data x/x'2ffde'/ ! { dg-warning "Hexadecimal constant | used to initialize non-integer" }
+ dx = x ! { dg-bogus "exadecimal constant" "Hex constant where there is none" }
+ end