1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK,LINUX
2 
3 struct S {
4   __attribute__((cpu_specific(atom)))
5   void Func(){}
6   __attribute__((cpu_dispatch(ivybridge,atom)))
7   void Func(){}
8 };
9 
10 void foo() {
11   S s;
12   s.Func();
13 }
14 
15 // LINUX: define linkonce_odr void @_ZN1S4FuncEv.O
16 // LINUX: define void (%struct.S*)* @_ZN1S4FuncEv.resolver
17 // LINUX: ret void (%struct.S*)* @_ZN1S4FuncEv.S
18 // LINUX: ret void (%struct.S*)* @_ZN1S4FuncEv.O
19