From a77a182b04a5f3ee15eacf50883dd61d549f1634 Mon Sep 17 00:00:00 2001
From: Sanjiv Gupta <sanjiv.gupta@microchip.com>
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.

llvm-svn: 77195
---
 llvm/test/CodeGen/PIC16/global-in-user-section.ll | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 llvm/test/CodeGen/PIC16/global-in-user-section.ll

diff --git a/llvm/test/CodeGen/PIC16/global-in-user-section.ll b/llvm/test/CodeGen/PIC16/global-in-user-section.ll
new file mode 100644
index 000000000000..02fd06849c3f
--- /dev/null
+++ b/llvm/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