diff options
Diffstat (limited to 'clang/test/Analysis/unreachable-code-path.c')
| -rw-r--r-- | clang/test/Analysis/unreachable-code-path.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Analysis/unreachable-code-path.c b/clang/test/Analysis/unreachable-code-path.c index 975c9887e45..4ddfb21f0a0 100644 --- a/clang/test/Analysis/unreachable-code-path.c +++ b/clang/test/Analysis/unreachable-code-path.c @@ -206,3 +206,10 @@ void test13(int i) { int x = inlineFunction(i); x && x < 10; // no-warning } + +// Don't warn in a macro +#define RETURN(X) do { return; } while (0) +void macro(void) { + RETURN(1); // no-warning +} + |

