diff options
-rw-r--r-- | test/Analysis/reference.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Analysis/reference.cpp b/test/Analysis/reference.cpp index 941147b9b2..a641b8e821 100644 --- a/test/Analysis/reference.cpp +++ b/test/Analysis/reference.cpp @@ -3,4 +3,9 @@ void f1() { int const &i = 3; int b = i; + + int *p = 0; + + if (b != 3) + *p = 1; // no-warning } |