diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-15 13:20:15 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-15 13:42:28 +0200 |
commit | 57b2adae536a6399ed7d2c881b1bc0d4b88e936a (patch) | |
tree | a48a77532561a8f53174c7090c71f519cd231fd7 /gcc/testsuite/gdc.dg | |
parent | 8c2733e16ec1c0cdda3db4cdc5ad158a96a658e8 (diff) | |
download | gcc-57b2adae536a6399ed7d2c881b1bc0d4b88e936a.zip gcc-57b2adae536a6399ed7d2c881b1bc0d4b88e936a.tar.gz gcc-57b2adae536a6399ed7d2c881b1bc0d4b88e936a.tar.bz2 |
d: Set TYPE_ARTIFICIAL on internal TypeInfo types
Prevents them from triggering warnings when compiling with `-Wpadded'.
gcc/d/ChangeLog:
* typeinfo.cc (make_internal_typeinfo): Set TYPE_ARTIFICIAL.
gcc/testsuite/ChangeLog:
* gdc.dg/Wpadded.d: New test.
Diffstat (limited to 'gcc/testsuite/gdc.dg')
-rw-r--r-- | gcc/testsuite/gdc.dg/Wpadded.d | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.dg/Wpadded.d b/gcc/testsuite/gdc.dg/Wpadded.d new file mode 100644 index 0000000..8a9cca7 --- /dev/null +++ b/gcc/testsuite/gdc.dg/Wpadded.d @@ -0,0 +1,4 @@ +// { dg-do compile } +// { dg-options "-Wpadded" } + +class EmptyClass { } |