Hi delesley, aaron.ballman, silvas,

Added a test case for the fix to bug 17632 in r193751

http://llvm-reviews.chandlerc.com/D2094

Files:
  test/SemaCXX/warn-consumed-analysis.cpp

Index: test/SemaCXX/warn-consumed-analysis.cpp
===================================================================
--- test/SemaCXX/warn-consumed-analysis.cpp
+++ test/SemaCXX/warn-consumed-analysis.cpp
@@ -608,6 +608,8 @@
   *var0; // expected-warning {{invalid invocation of method 'operator*' on 
object 'var0' while it is in the 'consumed' state}}
 }
 
+typedef const int*& IntegerPointerReference;
+void testIsRValueRefishAndCanonicalType(IntegerPointerReference a) {}
 
 namespace ContinueICETest {
Index: test/SemaCXX/warn-consumed-analysis.cpp
===================================================================
--- test/SemaCXX/warn-consumed-analysis.cpp
+++ test/SemaCXX/warn-consumed-analysis.cpp
@@ -608,6 +608,8 @@
   *var0; // expected-warning {{invalid invocation of method 'operator*' on object 'var0' while it is in the 'consumed' state}}
 }
 
+typedef const int*& IntegerPointerReference;
+void testIsRValueRefishAndCanonicalType(IntegerPointerReference a) {}
 
 namespace ContinueICETest {
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to