diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2014-09-04 08:56:24 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2014-09-04 08:56:24 +0000 |
commit | 72268260f27210d006d032cd8efd5b7c77f6a2e1 (patch) | |
tree | bf47b973789cdb1662281ccb78a49be69686bf58 /ACE/tests/Compiler_Features_32_Test.cpp | |
parent | 060805137ff4efcfae162072afdd0e72ee4689cf (diff) | |
download | ATCD-72268260f27210d006d032cd8efd5b7c77f6a2e1.tar.gz |
Thu Sep 4 08:57:02 UTC 2014 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/os_include/os_stropts.h:
Give struct strrecvfd a dummy member, empty structs have
undefined behavior and trigger a huge amount of warnings
with clang. This also fixes bugzilla 4150, thanks to
Yogesh Sharma <Yogesh dot Sharma at saabusa dot com> for
reporting this.
* tests/Compiler_Features_32_Test.cpp:
Extended this unit test and add some external references
Diffstat (limited to 'ACE/tests/Compiler_Features_32_Test.cpp')
-rw-r--r-- | ACE/tests/Compiler_Features_32_Test.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ACE/tests/Compiler_Features_32_Test.cpp b/ACE/tests/Compiler_Features_32_Test.cpp index a66b6713880..96b231b379b 100644 --- a/ACE/tests/Compiler_Features_32_Test.cpp +++ b/ACE/tests/Compiler_Features_32_Test.cpp @@ -2,7 +2,14 @@ /** * This program checks if the compiler doesn't have a certain bug - * that we encountered when testing C++11 features + * that we encountered when testing C++11 features. + * + * This test validates whether a alias can be used to explicitly + * call a destructor, which is related to DR244 (see + * http://wg21.cmeerw.net/cwg/issue244) + * + * This is fixed May 2014 in clang, see + * http://llvm.org/viewvc/llvm-project?view=revision&revision=209319 */ #include "test_config.h" @@ -39,6 +46,15 @@ void A::clear () this->u_.string_member_.std::string::~string (); } +struct B { + struct u_type_ { + std::string m; + } u_; + void clear() { + u_.m.std::string::~string(); + } +}; + int run_main (int, ACE_TCHAR *[]) { |