~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/odr_comdat.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=ARMGNUEABI
 
2
 
 
3
; Checking that a comdat group gets generated correctly for a static member 
 
4
; of instantiated C++ templates.
 
5
; see http://sourcery.mentor.com/public/cxx-abi/abi.html#vague-itemplate
 
6
; section 5.2.6 Instantiated templates
 
7
; "Any static member data object is emitted in a COMDAT identified by its mangled 
 
8
;  name, in any object file with a reference to its name symbol."
 
9
 
 
10
; Case 1: variable is not explicitly initialized, and ends up in a .bss section
 
11
; ARMGNUEABI: .section        .bss._ZN1CIiE1iE,"aGw",%nobits,_ZN1CIiE1iE,comdat
 
12
@_ZN1CIiE1iE = weak_odr global i32 0, align 4
 
13
 
 
14
; Case 2: variable is explicitly initialized, and ends up in a .data section
 
15
; ARMGNUEABI: .section        .data._ZN1CIiE1jE,"aGw",%progbits,_ZN1CIiE1jE,comdat
 
16
@_ZN1CIiE1jE = weak_odr global i32 12, align 4