[cfe-commits] r100493 - /cfe/trunk/tools/driver/cc1_main.cpp

Douglas Gregor dgregor at apple.com
Tue Apr 6 10:34:45 PDT 2010


On Apr 6, 2010, at 10:15 AM, Chris Lattner wrote:

> 
> On Apr 6, 2010, at 9:52 AM, Douglas Gregor wrote:
> 
>> 
>> On Apr 5, 2010, at 4:33 PM, Chris Lattner wrote:
>> 
>>> Author: lattner
>>> Date: Mon Apr  5 18:33:20 2010
>>> New Revision: 100493
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=100493&view=rev
>>> Log:
>>> inline in MC assembly parsers.  clang -integrated-as now
>>> works with inline asm!
>> 
>> Awesome! Do we get a test case?
> 
> The thought occurred to me!  I need to do something like this:
> 
> RUN: clang asm.c -c -o t.o -integrated-as
> RUN: otool -tv t.o | FileCheck %s
> 
> How do I ensure this is only run on a machine that has otool?


I guess we could teach lit about otool.

Perhaps there is a negative test you could add, e.g., where the inline asm is ill-formed and MC produces a diagnostic that can be checked with FileCheck [*]?

	- Doug

[*] I'm assuming that MC can't yet route its error messages through Clang's diagnostic system, so -verify won't work.



More information about the cfe-commits mailing list