From: Justin Bogner Date: Thu, 23 Jan 2014 04:41:06 +0000 (+0000) Subject: test/CodeGenCXX: Be less strict about return types X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a6133d6ff739ddd6531759e988bb80550e214e9;p=clang test/CodeGenCXX: Be less strict about return types Some ABIs have different return types for constructors and destructors, and we're just looking for the end of the function here. Loosen up the regex. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199870 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/instr-profile-class.cpp b/test/CodeGenCXX/instr-profile-class.cpp index d731e1a675..d7b4499d26 100644 --- a/test/CodeGenCXX/instr-profile-class.cpp +++ b/test/CodeGenCXX/instr-profile-class.cpp @@ -29,7 +29,7 @@ public: if (Member) {} // CTRGEN-NOT: store {{.*}} @[[SCC]], // CTRUSE-NOT: br {{.*}} !prof ![0-9]+ - // CTRUSE: ret void + // CTRUSE: ret } // CTRUSE: ![[SC1]] = metadata !{metadata !"branch_weights", i32 100, i32 2} @@ -42,7 +42,7 @@ public: if (Member) {} // DTRGEN-NOT: store {{.*}} @[[SDC]], // DTRUSE-NOT: br {{.*}} !prof ![0-9]+ - // DTRUSE: ret void + // DTRUSE: ret } // DTRUSE: ![[SD1]] = metadata !{metadata !"branch_weights", i32 100, i32 2} @@ -55,7 +55,7 @@ public: if (Member) {} // MTHGEN-NOT: store {{.*}} @[[SMC]], // MTHUSE-NOT: br {{.*}} !prof ![0-9]+ - // MTHUSE: ret void + // MTHUSE: ret } // MTHUSE: ![[SM1]] = metadata !{metadata !"branch_weights", i32 100, i32 2} }; @@ -72,7 +72,7 @@ void simple_wrapper() { } // WRPGEN-NOT: store {{.*}} @[[SWC]], // WRPUSE-NOT: br {{.*}} !prof ![0-9]+ - // WRPUSE: ret void + // WRPUSE: ret } // WRPUSE: ![[SW1]] = metadata !{metadata !"branch_weights", i32 100, i32 2}