r340522 - Update avr attributes test for output change in r340519
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 23 03:21:36 PDT 2018
Author: arichardson
Date: Thu Aug 23 03:21:36 2018
New Revision: 340522
URL: http://llvm.org/viewvc/llvm-project?rev=340522&view=rev
Log:
Update avr attributes test for output change in r340519
After this commit there is an addrspace(1) before the attribute #. Since
these tests are only checking the value of the attribute add a {{.*}} to
make the test resilient to future output changes.
Modified:
cfe/trunk/test/CodeGen/avr/attributes/interrupt.c
cfe/trunk/test/CodeGen/avr/attributes/signal.c
Modified: cfe/trunk/test/CodeGen/avr/attributes/interrupt.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/avr/attributes/interrupt.c?rev=340522&r1=340521&r2=340522&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/avr/attributes/interrupt.c (original)
+++ cfe/trunk/test/CodeGen/avr/attributes/interrupt.c Thu Aug 23 03:21:36 2018
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple avr-unknown-unknown -emit-llvm %s -o - | FileCheck %s
-// CHECK: define void @foo() #0
+// CHECK: define void @foo(){{.*}}#0
__attribute__((interrupt)) void foo(void) { }
// CHECK: attributes #0 = {{{.*interrupt.*}}}
Modified: cfe/trunk/test/CodeGen/avr/attributes/signal.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/avr/attributes/signal.c?rev=340522&r1=340521&r2=340522&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/avr/attributes/signal.c (original)
+++ cfe/trunk/test/CodeGen/avr/attributes/signal.c Thu Aug 23 03:21:36 2018
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple avr-unknown-unknown -emit-llvm %s -o - | FileCheck %s
-// CHECK: define void @foo() #0
+// CHECK: define void @foo(){{.*}}#0
__attribute__((signal)) void foo(void) { }
// CHECK: attributes #0 = {{{.*signal.*}}}
More information about the cfe-commits
mailing list