From c3ee7960d9485d20b790091def10c64ee7e75554 Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Mon, 27 Jul 2009 16:20:41 +0000 Subject: [PATCH] Test case to check that separate section is created for a global variable specified with section attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77195 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PIC16/global-in-user-section.ll | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/CodeGen/PIC16/global-in-user-section.ll diff --git a/test/CodeGen/PIC16/global-in-user-section.ll b/test/CodeGen/PIC16/global-in-user-section.ll new file mode 100644 index 00000000000..02fd06849c3 --- /dev/null +++ b/test/CodeGen/PIC16/global-in-user-section.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s + +@G1 = common global i16 0, section "usersection", align 1 +; CHECK: usersection UDATA +; CHECK: @G1 RES 2