Due to changes coming from the new LLVM type system, you now get
authorDuncan Sands <baldrick@free.fr>
Thu, 28 Jul 2011 12:21:47 +0000 (12:21 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 28 Jul 2011 12:21:47 +0000 (12:21 +0000)
bitcasts in this test rather than getelementptr instructions;
llvm-gcc produces two bitcasts, clang produces one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136349 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/ptr-to-method-devirt.cpp

index a5ca5c76559ad78e392944c9b3e6e01abbd8a59f..654df53fc1b7ae92afbb9a282b4f4e5ba95cd34a 100644 (file)
@@ -1,6 +1,7 @@
 // PR1602
 // RUN: %llvmgxx -S %s -o - -O3 | not grep ptrtoint
-// RUN: %llvmgxx -S %s -o - -O3 | grep getelementptr | count 1
+// RUN: %llvmgxx -S %s -o - -O3 | not grep getelementptr
+// RUN: %llvmgxx -S %s -o - -O3 | grep bitcast
 
 
 struct S { virtual void f(); };