diff options
Diffstat (limited to 'test/SemaCXX/reinterpret-cast.cpp')
-rw-r--r-- | test/SemaCXX/reinterpret-cast.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/SemaCXX/reinterpret-cast.cpp b/test/SemaCXX/reinterpret-cast.cpp index 4284032..7c88dc0 100644 --- a/test/SemaCXX/reinterpret-cast.cpp +++ b/test/SemaCXX/reinterpret-cast.cpp @@ -201,11 +201,11 @@ void dereference_reinterpret_cast() { (void)*reinterpret_cast<float*>(v_ptr); // Casting to void pointer - (void)*reinterpret_cast<void*>(&a); - (void)*reinterpret_cast<void*>(&b); - (void)*reinterpret_cast<void*>(&l); - (void)*reinterpret_cast<void*>(&d); - (void)*reinterpret_cast<void*>(&f); + (void)*reinterpret_cast<void*>(&a); // expected-warning {{ISO C++ does not allow}} + (void)*reinterpret_cast<void*>(&b); // expected-warning {{ISO C++ does not allow}} + (void)*reinterpret_cast<void*>(&l); // expected-warning {{ISO C++ does not allow}} + (void)*reinterpret_cast<void*>(&d); // expected-warning {{ISO C++ does not allow}} + (void)*reinterpret_cast<void*>(&f); // expected-warning {{ISO C++ does not allow}} } void reinterpret_cast_whitelist () { |