/* RUN: %clang_cc1 -E %s -DNO_ERRORS -Werror -Wundef
RUN: not %clang_cc1 -E %s
*/
/* None of these divisions by zero are in live parts of the expression, do not
emit any diagnostics. */
foo
bar
? 124/0 : 42
// PR2279
? 1/0: 2
// PR2279
? 2 ? 3 : 4 : 5
// PR2284
? 0: 1 ? 1/0: 1/0
/* The 1/0 is live, it should error out. */
&& 1 ? 4 : 1 / 0
baz
// rdar://6505352
// -Wundef should not warn about use of undefined identifier if not live.