Revision ac4b68fbf45853ba4b9e327cb42f93f42a8fa252 authored by Ellie Shin on 17 March 2023, 04:14:20 UTC, committed by Ellie Shin on 17 March 2023, 04:14:20 UTC
1 parent f2c68fb
Raw File
alignment.swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s

@_alignment(8)
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "S8"
// CHECK-SAME:             align: 64,
struct S8 { var x, y, z, w: Float }

@_alignment(16)
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "E16"
// CHECK-SAME:             align: 128,
enum E16 {
  case F(Float)
  case I(Int64)
}

var s: S8
var e: E16
back to top