kookie424 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

need to check whether our uses of GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ are OK #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can 'statement' be a macro that expands to unprotected comma?

Write tests to make sure the following compiles:

  #define MY_STATEMENT int m, n = 0; exit(1);

  EXPECT_DEATH(MY_STATEMENT, "");

(EXPECT_DEATH uses GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ in its 
implementation.)

Original issue reported on code.google.com by zhanyong...@gmail.com on 21 Sep 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 21 Oct 2009 at 4:21

GoogleCodeExporter commented 9 years ago
Not worth it.

Original comment by w...@google.com on 6 Mar 2010 at 6:11