test/CodeGenCXX/references.cpp failing for i386

One of the Clang tests is failing when the target architecture is i386. For 'test/CodeGenCXX/references.cpp', we get different results depending on whether the target architecture (which for this test is determined by the host) is i386 or x86_64:

  $ clang-cc -verify -emit-llvm -o - references.cpp -triple i386-apple-darwin10 | FileCheck references.cpp
  references.cpp:124:34: error: expected string not found in input
   // CHECK: call void @_ZN1T1B1fEv
                                   ^
  <stdin>:245:24: note: scanning from here
   call void @_ZN1T1BC1Ev(%struct.A* %tmp) ssp
                         ^

VERSUS

  $ clang-cc -verify -emit-llvm -o - references.cpp -triple x86_64-apple-darwin10 | FileCheck references.cpp

Does this look familiar to anyone? Notice the small differences in the 'call' instruction. If this test needs to be made architecture specific, we should add a '-triple' option to the test.

Hi Ted,

I caused this - I'll add a triple for now.

Anders

19 okt 2009 kl. 17.05 skrev Ted Kremenek:

Thanks Anders!