[cfe-commits] r148375 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Matt Beaumont-Gay matthewbg at google.com
Tue Jan 17 19:56:31 PST 2012


On Tue, Jan 17, 2012 at 19:49, Nick Lewycky <nlewycky at google.com> wrote:
> The testcase for this would be:
>
> #include <stdio.h>
>
> void testcase(void) {
>   vprintf(0, 0);
> }
>
> except that I will not introduce a test that isn't hermetic. It appears to
> be impossible to fake this by declaring my own function, or even using #
> lines to mark it. If I preprocess that testcase, the result no longer
> triggers the memory error.
>
> Any suggestions for refactoring clang to make testing this possible would be
> greatly appreciated.


Add test/CodeGen/Inputs/stdio.h with an appropriate prototype and pass
-isystem %S/Inputs on the RUN line?

-Matt




More information about the cfe-commits mailing list