1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -std=c++11 -Wunused-local-typedef -verify -fasm-blocks %s
3 // expected-no-diagnostics
use_in_asm()4 void use_in_asm() {
5   typedef struct {
6     int a;
7     int b;
8   } A;
9   __asm mov eax, [eax].A.b
10 
11   using Alias = struct {
12     int a;
13     int b;
14   };
15   __asm mov eax, [eax].Alias.b
16 }
17