diff --git a/.gitattributes b/.gitattributes index f8cb7ea146..f59f5f667f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10461,6 +10461,7 @@ tests/test/tutf82.pp svneol=native#text/plain tests/test/tvarpropsetter1.pp svneol=native#text/plain tests/test/tvarpropsetter2.pp svneol=native#text/plain tests/test/tvarset1.pp svneol=native#text/plain +tests/test/twarn1.pp svneol=native#text/pascal tests/test/tweaklib1.pp svneol=native#text/plain tests/test/tweaklib2.pp svneol=native#text/plain tests/test/tweaklib3.pp svneol=native#text/plain diff --git a/tests/test/twarn1.pp b/tests/test/twarn1.pp new file mode 100644 index 0000000000..97adb63646 --- /dev/null +++ b/tests/test/twarn1.pp @@ -0,0 +1,12 @@ +program Project1; + +{$mode objfpc}{$H+} + +var + i: integer platform; +begin + {$warn symbol_platform off} + i := 1; + {$warn symbol_platform off} + i := 2; +end.