| 1 | // RUN: %clangxx_tysan %s -o %t && %run %t 2>&1 | FileCheck --implicit-check-not ERROR %s |
|---|---|
| 2 | |
| 3 | #include <stdio.h> |
| 4 | |
| 5 | class Base { |
| 6 | public: |
| 7 | void *first; |
| 8 | void *second; |
| 9 | void *third; |
| 10 | }; |
| 11 | |
| 12 | class Derrived : public Base {}; |
| 13 | |
| 14 | Derrived derr; |
| 15 | |
| 16 | int main() { |
| 17 | derr.second = nullptr; |
| 18 | printf(format: "%p", derr.second); |
| 19 | |
| 20 | return 0; |
| 21 | } |
| 22 |
