diff options
Diffstat (limited to 'test/SemaCXX/warn-empty-body.cpp')
-rw-r--r-- | test/SemaCXX/warn-empty-body.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-empty-body.cpp b/test/SemaCXX/warn-empty-body.cpp index d643ced..d3aaac1 100644 --- a/test/SemaCXX/warn-empty-body.cpp +++ b/test/SemaCXX/warn-empty-body.cpp @@ -269,3 +269,8 @@ void test_template_inst(int x) { test_template<double>(x); } +#define IDENTITY(a) a +void test7(int x, int y) { + if (x) IDENTITY(); // no-warning +} + |