brintos

brintos / llvm-project-archived public Read only

0
0
Text · 365 B · d7792c0 Raw
17 lines · cpp
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -std=c++11 -Wunused-local-typedef -verify -fasm-blocks %s3// expected-no-diagnostics4void use_in_asm() {5  typedef struct {6    int a;7    int b;8  } A;9  __asm mov eax, [eax].A.b10 11  using Alias = struct {12    int a;13    int b;14  };15  __asm mov eax, [eax].Alias.b16}17