[cfe-commits] r98129 - /cfe/trunk/test/SemaCXX/PR6474.cpp
rjmccall at apple.com
Tue Mar 9 20:24:39 PST 2010
On Mar 9, 2010, at 8:09 PM, Rafael Espíndola wrote:
>> Right, but introducing the necessary changes in Sema also required changes in CodeGen — which your test doesn't exercise at all.
>>> What is the canonical way of adding such tests?
>> Make a test in CodeGenCXX with a run line like
>> RUN: %clang_cc1 -triple <something> -emit-llvm -o - %s | FileCheck %s
>> and then check for the existence (or non-existence, although that's trickier) of lines in the output you consider interesting.
> The necessary changes in codegen are there to avoid an assertion
> failure. OK if I just move the test to CodeGenCXX and remove the
If that's really all it's doing, then sure, move it and substitute -emit-llvm-only for -fsyntax-only.
More information about the cfe-commits